synapsecns/sanguine

View on GitHub
agents/contracts/lightinbox/mocks/i_light_inbox.go

Summary

Maintainability
F
3 wks
Test Coverage

File i_light_inbox.go has 1011 lines of code (exceeds 500 allowed). Consider refactoring.
Open

// Code generated by mockery v2.14.0. DO NOT EDIT.

package mocks

import (
Severity: Major
Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 1 day to fix

    ILightInbox has 55 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type ILightInbox struct {
        mock.Mock
    }
    Severity: Major
    Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 7 hrs to fix

      Method ILightInbox.SubmitStateReportWithSnapshotProof has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (_m *ILightInbox) SubmitStateReportWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, srSignature []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
      Severity: Major
      Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 50 mins to fix

        Method ILightInbox.SubmitStateReportWithAttestation has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (_m *ILightInbox) SubmitStateReportWithAttestation(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
        Severity: Minor
        Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 45 mins to fix

          Method ILightInbox.VerifyStateWithSnapshotProof has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (_m *ILightInbox) VerifyStateWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
          Severity: Minor
          Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 45 mins to fix

            Method ILightInbox.VerifyStateWithAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            func (_m *ILightInbox) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
            Severity: Minor
            Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

              Method ILightInbox.SubmitStateReportWithSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (_m *ILightInbox) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
              Severity: Minor
              Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

                Method ILightInbox.SubmitAttestation has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func (_m *ILightInbox) SubmitAttestation(opts *bind.TransactOpts, attPayload []byte, attSignature []byte, agentRoot_ [32]byte, snapGas_ []*big.Int) (*types.Transaction, error) {
                Severity: Minor
                Found in agents/contracts/lightinbox/mocks/i_light_inbox.go - About 35 mins to fix

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) SubmitStateReportWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, srSignature []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, statePayload, srSignature, snapProof, attPayload, attSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, []byte, [][32]byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 5 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1085..1105

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 388.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyStateWithSnapshotProof(opts *bind.TransactOpts, stateIndex uint8, statePayload []byte, snapProof [][32]byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, statePayload, snapProof, attPayload, attSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, [][32]byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 5 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1336..1356

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 368.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 12 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
                      ret := _m.Called(opts, sink, previousOwner, newOwner)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxOwnershipTransferStarted, []common.Address, []common.Address) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 11 other locations - About 4 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1422..1442
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1445..1465
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 798..818
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 821..841
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1587..1607
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1610..1630
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1265..1285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1294..1314
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1317..1337
                  agents/contracts/origin/mocks/i_origin.go on lines 930..950
                  agents/contracts/origin/mocks/i_origin.go on lines 953..973

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 356.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 12 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
                      ret := _m.Called(opts, sink, previousOwner, newOwner)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxOwnershipTransferred, []common.Address, []common.Address) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 11 other locations - About 4 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1422..1442
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1445..1465
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 798..818
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 821..841
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1587..1607
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1610..1630
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1242..1262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1294..1314
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1317..1337
                  agents/contracts/origin/mocks/i_origin.go on lines 930..950
                  agents/contracts/origin/mocks/i_origin.go on lines 953..973

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 356.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) SubmitStateReportWithAttestation(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, srSignature, snapPayload, attPayload, attSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, []byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1039..1059

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 356.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Initialize(opts *bind.TransactOpts, agentManager_ common.Address, origin_ common.Address, destination_ common.Address) (*types.Transaction, error) {
                      ret := _m.Called(opts, agentManager_, origin_, destination_)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, common.Address, common.Address, common.Address) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 554..574

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 340.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyStateWithAttestation(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, snapPayload, attPayload, attSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 3 other locations - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1062..1082
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1290..1310
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 832..852

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 336.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 4 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) SubmitStateReportWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, srSignature []byte, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, srSignature, snapPayload, snapSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 3 other locations - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1062..1082
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1290..1310
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 991..1011

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 336.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 12 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*lightinbox.LightInboxOwnershipTransferredIterator, error) {
                      ret := _m.Called(opts, previousOwner, newOwner)
                  
                      var r0 *lightinbox.LightInboxOwnershipTransferredIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *lightinbox.LightInboxOwnershipTransferredIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 11 other locations - About 4 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 380..400
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 403..423
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 134..154
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 318..338
                  agents/contracts/inbox/mocks/i_inbox.go on lines 341..361
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 272..292
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 288..308
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 311..331
                  agents/contracts/origin/mocks/i_origin.go on lines 132..152
                  agents/contracts/origin/mocks/i_origin.go on lines 155..175

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 326.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 12 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*lightinbox.LightInboxOwnershipTransferStartedIterator, error) {
                      ret := _m.Called(opts, previousOwner, newOwner)
                  
                      var r0 *lightinbox.LightInboxOwnershipTransferStartedIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *lightinbox.LightInboxOwnershipTransferStartedIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 11 other locations - About 4 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 380..400
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 403..423
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 134..154
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 318..338
                  agents/contracts/inbox/mocks/i_inbox.go on lines 341..361
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 295..315
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 288..308
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 311..331
                  agents/contracts/origin/mocks/i_origin.go on lines 132..152
                  agents/contracts/origin/mocks/i_origin.go on lines 155..175

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 326.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) SubmitAttestationReport(opts *bind.TransactOpts, attPayload []byte, arSignature []byte, attSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, attPayload, arSignature, attSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 993..1013

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 322.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) GetGuardReport(opts *bind.CallOpts, index *big.Int) (struct {
                      StatementPayload []byte
                      ReportSignature  []byte
                  }, error) {
                      ret := _m.Called(opts, index)
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 410..440

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 320.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyStateWithSnapshot(opts *bind.TransactOpts, stateIndex uint8, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, stateIndex, snapPayload, snapSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint8, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 4 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1313..1333

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 316.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 9 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyStateReport(opts *bind.TransactOpts, statePayload []byte, srSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, statePayload, srSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 8 other locations - About 3 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1016..1036
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1175..1195
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1198..1218
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1221..1241
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1244..1264
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1267..1287
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 922..942
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 945..965

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 302.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 9 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyReceipt(opts *bind.TransactOpts, rcptPayload []byte, rcptSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, rcptPayload, rcptSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 8 other locations - About 3 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1016..1036
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1175..1195
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1198..1218
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1221..1241
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1244..1264
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1267..1287
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 945..965
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 968..988

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 302.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 9 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) VerifyReceiptReport(opts *bind.TransactOpts, rcptPayload []byte, rrSignature []byte) (*types.Transaction, error) {
                      ret := _m.Called(opts, rcptPayload, rrSignature)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 8 other locations - About 3 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1016..1036
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1175..1195
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1198..1218
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1221..1241
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1244..1264
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1267..1287
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 922..942
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 968..988

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 302.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 6 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Multicall(opts *bind.TransactOpts, calls []lightinbox.MultiCallableCall) (*types.Transaction, error) {
                      ret := _m.Called(opts, calls)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []lightinbox.MultiCallableCall) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 5 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 805..825
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 388..408
                  agents/contracts/inbox/mocks/i_inbox.go on lines 533..553
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 598..618
                  agents/contracts/origin/mocks/i_origin.go on lines 435..455

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 294.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInvalidReceipt(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidReceipt) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidReceipt) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInitialized(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInitialized) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInitialized) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInvalidReceiptReport(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidReceiptReport) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidReceiptReport) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchAttestationAccepted(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxAttestationAccepted) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxAttestationAccepted) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInvalidStateReport(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidStateReport) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidStateReport) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInvalidStateWithSnapshot(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidStateWithSnapshot) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidStateWithSnapshot) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 37 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) WatchInvalidStateWithAttestation(opts *bind.WatchOpts, sink chan<- *lightinbox.LightInboxInvalidStateWithAttestation) (event.Subscription, error) {
                      ret := _m.Called(opts, sink)
                  
                      var r0 event.Subscription
                      if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *lightinbox.LightInboxInvalidStateWithAttestation) event.Subscription); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 36 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1219..1239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1202..1222
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1225..1245
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1248..1268
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1271..1291
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1340..1360
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1363..1383
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1386..1406
                  agents/contracts/origin/mocks/i_origin.go on lines 907..927
                  agents/contracts/origin/mocks/i_origin.go on lines 999..1019
                  agents/contracts/origin/mocks/i_origin.go on lines 1022..1042

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 292.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 6 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
                      ret := _m.Called(opts, newOwner)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts, common.Address) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 5 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1286..1306
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 685..705
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1152..1172
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1135..1155
                  agents/contracts/origin/mocks/i_origin.go on lines 863..883

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 288.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) GetStoredSignature(opts *bind.CallOpts, index *big.Int) ([]byte, error) {
                      ret := _m.Called(opts, index)
                  
                      var r0 []byte
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts, *big.Int) []byte); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 1 other location - About 3 hrs to fix
                  agents/contracts/inbox/mocks/i_inbox.go on lines 466..486

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 278.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) GetReportsAmount(opts *bind.CallOpts) (*big.Int, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *big.Int
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) *big.Int); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInvalidReceipt(opts *bind.FilterOpts) (*lightinbox.LightInboxInvalidReceiptIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInvalidReceiptIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInvalidReceiptIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInvalidStateWithSnapshot(opts *bind.FilterOpts) (*lightinbox.LightInboxInvalidStateWithSnapshotIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInvalidStateWithSnapshotIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInvalidStateWithSnapshotIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInvalidStateReport(opts *bind.FilterOpts) (*lightinbox.LightInboxInvalidStateReportIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInvalidStateReportIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInvalidStateReportIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInitialized(opts *bind.FilterOpts) (*lightinbox.LightInboxInitializedIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInitializedIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInitializedIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInvalidReceiptReport(opts *bind.FilterOpts) (*lightinbox.LightInboxInvalidReceiptReportIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInvalidReceiptReportIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInvalidReceiptReportIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterAttestationAccepted(opts *bind.FilterOpts) (*lightinbox.LightInboxAttestationAcceptedIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxAttestationAcceptedIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxAttestationAcceptedIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) FilterInvalidStateWithAttestation(opts *bind.FilterOpts) (*lightinbox.LightInboxInvalidStateWithAttestationIterator, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *lightinbox.LightInboxInvalidStateWithAttestationIterator
                      if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *lightinbox.LightInboxInvalidStateWithAttestationIterator); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 740..760
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 65 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
                      ret := _m.Called(opts)
                  
                      var r0 *types.Transaction
                      if rf, ok := ret.Get(0).(func(*bind.TransactOpts) *types.Transaction); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 64 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
                  agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
                  agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
                  agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
                  agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
                  agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
                  agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
                  agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
                  agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
                  agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
                  agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
                  agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
                  agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
                  agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 26..46
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 109..129
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 196..216
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 219..239
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 242..262
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 265..285
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 334..354
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 357..377
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 380..400
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 508..528
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1022..1042
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1045..1065
                  agents/contracts/origin/mocks/i_origin.go on lines 26..46
                  agents/contracts/origin/mocks/i_origin.go on lines 109..129
                  agents/contracts/origin/mocks/i_origin.go on lines 201..221
                  agents/contracts/origin/mocks/i_origin.go on lines 224..244
                  agents/contracts/origin/mocks/i_origin.go on lines 349..369
                  agents/contracts/origin/mocks/i_origin.go on lines 681..701
                  agents/contracts/origin/mocks/i_origin.go on lines 773..793
                  ethergo/backends/mocks/simulated_test_backend.go on lines 683..703
                  ethergo/backends/mocks/simulated_test_backend.go on lines 706..726

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 262.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 30 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Owner(opts *bind.CallOpts) (common.Address, error) {
                      ret := _m.Called(opts)
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 29 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
                  agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
                  agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
                  agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
                  agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
                  agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 717..737
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 132..152
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 531..551
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 644..664
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 667..687
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 920..940
                  agents/contracts/origin/mocks/i_origin.go on lines 65..85
                  agents/contracts/origin/mocks/i_origin.go on lines 247..267
                  agents/contracts/origin/mocks/i_origin.go on lines 326..346
                  agents/contracts/origin/mocks/i_origin.go on lines 481..501
                  agents/contracts/origin/mocks/i_origin.go on lines 658..678

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 254.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 30 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) AgentManager(opts *bind.CallOpts) (common.Address, error) {
                      ret := _m.Called(opts)
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 29 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
                  agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
                  agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
                  agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
                  agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
                  agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 717..737
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 132..152
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 531..551
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 644..664
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 667..687
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 920..940
                  agents/contracts/origin/mocks/i_origin.go on lines 65..85
                  agents/contracts/origin/mocks/i_origin.go on lines 247..267
                  agents/contracts/origin/mocks/i_origin.go on lines 326..346
                  agents/contracts/origin/mocks/i_origin.go on lines 481..501
                  agents/contracts/origin/mocks/i_origin.go on lines 658..678

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 254.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 30 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Destination(opts *bind.CallOpts) (common.Address, error) {
                      ret := _m.Called(opts)
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 29 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
                  agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
                  agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
                  agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
                  agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
                  agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 717..737
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 132..152
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 531..551
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 644..664
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 667..687
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 920..940
                  agents/contracts/origin/mocks/i_origin.go on lines 65..85
                  agents/contracts/origin/mocks/i_origin.go on lines 247..267
                  agents/contracts/origin/mocks/i_origin.go on lines 326..346
                  agents/contracts/origin/mocks/i_origin.go on lines 481..501
                  agents/contracts/origin/mocks/i_origin.go on lines 658..678

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 254.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 30 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) PendingOwner(opts *bind.CallOpts) (common.Address, error) {
                      ret := _m.Called(opts)
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 29 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
                  agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
                  agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
                  agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
                  agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
                  agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 132..152
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 531..551
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 644..664
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 667..687
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 920..940
                  agents/contracts/origin/mocks/i_origin.go on lines 65..85
                  agents/contracts/origin/mocks/i_origin.go on lines 247..267
                  agents/contracts/origin/mocks/i_origin.go on lines 326..346
                  agents/contracts/origin/mocks/i_origin.go on lines 481..501
                  agents/contracts/origin/mocks/i_origin.go on lines 658..678

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 254.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 30 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Origin(opts *bind.CallOpts) (common.Address, error) {
                      ret := _m.Called(opts)
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 29 other locations - About 3 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
                  agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
                  agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
                  agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
                  agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
                  agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 717..737
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 132..152
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 531..551
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 644..664
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 667..687
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 920..940
                  agents/contracts/origin/mocks/i_origin.go on lines 65..85
                  agents/contracts/origin/mocks/i_origin.go on lines 247..267
                  agents/contracts/origin/mocks/i_origin.go on lines 326..346
                  agents/contracts/origin/mocks/i_origin.go on lines 481..501
                  agents/contracts/origin/mocks/i_origin.go on lines 658..678

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 254.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 18 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) LocalDomain(opts *bind.CallOpts) (uint32, error) {
                      ret := _m.Called(opts)
                  
                      var r0 uint32
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) uint32); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 17 other locations - About 2 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
                  agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 878..896
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1060..1078
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 577..595
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1114..1132
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1181..1199
                  agents/contracts/origin/mocks/i_origin.go on lines 414..432
                  agents/contracts/origin/mocks/i_origin.go on lines 842..860
                  agents/contracts/origin/mocks/i_origin.go on lines 886..904

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 220.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 18 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) SynapseDomain(opts *bind.CallOpts) (uint32, error) {
                      ret := _m.Called(opts)
                  
                      var r0 uint32
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) uint32); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 17 other locations - About 2 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
                  agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 420..438
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1060..1078
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 577..595
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1114..1132
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1181..1199
                  agents/contracts/origin/mocks/i_origin.go on lines 414..432
                  agents/contracts/origin/mocks/i_origin.go on lines 842..860
                  agents/contracts/origin/mocks/i_origin.go on lines 886..904

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 220.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 18 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Version(opts *bind.CallOpts) (string, error) {
                      ret := _m.Called(opts)
                  
                      var r0 string
                      if rf, ok := ret.Get(0).(func(*bind.CallOpts) string); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 17 other locations - About 2 hrs to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
                  agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
                  agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 420..438
                  agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 878..896
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 577..595
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1114..1132
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1181..1199
                  agents/contracts/origin/mocks/i_origin.go on lines 414..432
                  agents/contracts/origin/mocks/i_origin.go on lines 842..860
                  agents/contracts/origin/mocks/i_origin.go on lines 886..904

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 220.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  Similar blocks of code found in 19 locations. Consider refactoring.
                  Open

                  func (_m *ILightInbox) Address() common.Address {
                      ret := _m.Called()
                  
                      var r0 common.Address
                      if rf, ok := ret.Get(0).(func() common.Address); ok {
                  Severity: Major
                  Found in agents/contracts/lightinbox/mocks/i_light_inbox.go and 18 other locations - About 1 hr to fix
                  agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 72..85
                  agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 49..62
                  agents/contracts/inbox/mocks/i_inbox.go on lines 49..62
                  agents/contracts/lightmanager/mocks/i_light_manager.go on lines 49..62
                  agents/contracts/origin/mocks/i_origin.go on lines 49..62
                  agents/contracts/origin/mocks/i_origin.go on lines 642..655
                  ethergo/backends/mocks/simulated_test_backend.go on lines 395..408
                  ethergo/backends/mocks/simulated_test_backend.go on lines 462..475
                  ethergo/backends/mocks/simulated_test_backend.go on lines 524..537
                  ethergo/backends/mocks/simulated_test_backend.go on lines 966..979
                  ethergo/chain/mocks/chain.go on lines 341..354
                  ethergo/chain/mocks/chain.go on lines 403..416
                  ethergo/chain/mocks/chain.go on lines 449..462
                  ethergo/contracts/mocks/deployed_contract.go on lines 21..34
                  ethergo/contracts/mocks/deployed_contract.go on lines 85..98
                  ethergo/listener/mocks/contract_listener.go on lines 21..34
                  ethergo/signer/signer/mocks/signer.go on lines 26..39
                  ethergo/signer/signer/mocks/signer.go on lines 65..78

                  Duplicated Code

                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                  Tuning

                  This issue has a mass of 147.

                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                  Refactorings

                  Further Reading

                  There are no issues that match your filters.

                  Category
                  Status