synapsecns/sanguine

View on GitHub
agents/contracts/inbox/mocks/i_inbox.go

Summary

Maintainability
F
1 mo
Test Coverage

File i_inbox.go has 1317 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/inbox/mocks/i_inbox.go - About 2 days to fix

    IInbox has 72 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type IInbox struct {
        mock.Mock
    }
    Severity: Major
    Found in agents/contracts/inbox/mocks/i_inbox.go - About 1 day to fix

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

      func (_m *IInbox) 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/inbox/mocks/i_inbox.go - About 50 mins to fix

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

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

          Method IInbox.SubmitReceipt has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (_m *IInbox) SubmitReceipt(opts *bind.TransactOpts, rcptPayload []byte, rcptSignature []byte, paddedTips *big.Int, headerHash [32]byte, bodyHash [32]byte) (*types.Transaction, error) {
          Severity: Minor
          Found in agents/contracts/inbox/mocks/i_inbox.go - About 45 mins to fix

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

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

              Method IInbox.Initialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (_m *IInbox) Initialize(opts *bind.TransactOpts, agentManager_ common.Address, origin_ common.Address, destination_ common.Address, summit_ common.Address) (*types.Transaction, error) {
              Severity: Minor
              Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

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

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

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

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

                    Method IInbox.PassReceipt has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (_m *IInbox) PassReceipt(opts *bind.TransactOpts, attNotaryIndex uint32, attNonce uint32, paddedTips *big.Int, rcptPayload []byte) (*types.Transaction, error) {
                    Severity: Minor
                    Found in agents/contracts/inbox/mocks/i_inbox.go - About 35 mins to fix

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

                      func (_m *IInbox) 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/inbox/mocks/i_inbox.go and 1 other location - About 5 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 855..875

                      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 *IInbox) 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/inbox/mocks/i_inbox.go and 1 other location - About 5 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1037..1057

                      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 2 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) Initialize(opts *bind.TransactOpts, agentManager_ common.Address, origin_ common.Address, destination_ common.Address, summit_ common.Address) (*types.Transaction, error) {
                          ret := _m.Called(opts, agentManager_, origin_, destination_, summit_)
                      
                          var r0 *types.Transaction
                          if rf, ok := ret.Get(0).(func(*bind.TransactOpts, common.Address, common.Address, common.Address, common.Address) *types.Transaction); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
                      agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 715..735

                      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 366.

                      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 *IInbox) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *inbox.InboxOwnershipTransferStarted, 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<- *inbox.InboxOwnershipTransferStarted, []common.Address, []common.Address) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 1610..1630
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1242..1262
                      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 *IInbox) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *inbox.InboxOwnershipTransferred, 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<- *inbox.InboxOwnershipTransferred, []common.Address, []common.Address) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 1242..1262
                      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 2 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) 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/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 809..829

                      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 3 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) WatchSnapshotAccepted(opts *bind.WatchOpts, sink chan<- *inbox.InboxSnapshotAccepted, domain []uint32, agent []common.Address) (event.Subscription, error) {
                          ret := _m.Called(opts, sink, domain, agent)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxSnapshotAccepted, []uint32, []common.Address) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_inbox.go and 2 other locations - About 4 hrs to fix
                      agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1537..1557
                      agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1409..1429

                      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 344.

                      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 *IInbox) 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/inbox/mocks/i_inbox.go and 3 other locations - About 4 hrs to fix
                      agents/contracts/inbox/mocks/i_inbox.go on lines 1290..1310
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 832..852
                      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 4 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) 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/inbox/mocks/i_inbox.go and 3 other locations - About 4 hrs to fix
                      agents/contracts/inbox/mocks/i_inbox.go on lines 1062..1082
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 832..852
                      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 *IInbox) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*inbox.InboxOwnershipTransferredIterator, error) {
                          ret := _m.Called(opts, previousOwner, newOwner)
                      
                          var r0 *inbox.InboxOwnershipTransferredIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *inbox.InboxOwnershipTransferredIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 272..292
                      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 12 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*inbox.InboxOwnershipTransferStartedIterator, error) {
                          ret := _m.Called(opts, previousOwner, newOwner)
                      
                          var r0 *inbox.InboxOwnershipTransferStartedIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *inbox.InboxOwnershipTransferStartedIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 341..361
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 272..292
                      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 *IInbox) SubmitReceiptReport(opts *bind.TransactOpts, rcptPayload []byte, rcptSignature []byte, rrSignature []byte) (*types.Transaction, error) {
                          ret := _m.Called(opts, rcptPayload, rcptSignature, rrSignature)
                      
                          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/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 786..806

                      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 *IInbox) GetGuardReport(opts *bind.CallOpts, index *big.Int) (struct {
                          StatementPayload []byte
                          ReportSignature  []byte
                      }, error) {
                          ret := _m.Called(opts, index)
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 318..348

                      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 *IInbox) 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/inbox/mocks/i_inbox.go and 1 other location - About 4 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1014..1034

                      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 3 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) FilterSnapshotAccepted(opts *bind.FilterOpts, domain []uint32, agent []common.Address) (*inbox.InboxSnapshotAcceptedIterator, error) {
                          ret := _m.Called(opts, domain, agent)
                      
                          var r0 *inbox.InboxSnapshotAcceptedIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []uint32, []common.Address) *inbox.InboxSnapshotAcceptedIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_inbox.go and 2 other locations - About 4 hrs to fix
                      agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 495..515
                      agents/contracts/lightmanager/mocks/i_light_manager.go on lines 403..423

                      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 314.

                      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 *IInbox) VerifyAttestationReport(opts *bind.TransactOpts, attPayload []byte, arSignature []byte) (*types.Transaction, error) {
                          ret := _m.Called(opts, attPayload, arSignature)
                      
                          var r0 *types.Transaction
                          if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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
                      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 *IInbox) 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/inbox/mocks/i_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 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
                      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 *IInbox) SubmitSnapshot(opts *bind.TransactOpts, snapPayload []byte, snapSignature []byte) (*types.Transaction, error) {
                          ret := _m.Called(opts, snapPayload, snapSignature)
                      
                          var r0 *types.Transaction
                          if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_inbox.go and 8 other locations - About 3 hrs to fix
                      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
                      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 *IInbox) 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/inbox/mocks/i_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 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
                      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 *IInbox) VerifyAttestation(opts *bind.TransactOpts, attPayload []byte, attSignature []byte) (*types.Transaction, error) {
                          ret := _m.Called(opts, attPayload, attSignature)
                      
                          var r0 *types.Transaction
                          if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []byte, []byte) *types.Transaction); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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
                      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 *IInbox) 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/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 922..942
                      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 6 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) Multicall(opts *bind.TransactOpts, calls []inbox.MultiCallableCall) (*types.Transaction, error) {
                          ret := _m.Called(opts, calls)
                      
                          var r0 *types.Transaction
                          if rf, ok := ret.Get(0).(func(*bind.TransactOpts, []inbox.MultiCallableCall) *types.Transaction); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 441..461
                      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 *IInbox) WatchInvalidAttestation(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidAttestation) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidAttestation) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidStateWithAttestation(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidStateWithAttestation) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidStateWithAttestation) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchReceiptAccepted(opts *bind.WatchOpts, sink chan<- *inbox.InboxReceiptAccepted) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxReceiptAccepted) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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/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/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 *IInbox) WatchAttestationAccepted(opts *bind.WatchOpts, sink chan<- *inbox.InboxAttestationAccepted) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxAttestationAccepted) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidStateReport(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidStateReport) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidStateReport) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInitialized(opts *bind.WatchOpts, sink chan<- *inbox.InboxInitialized) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInitialized) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidStateWithSnapshot(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidStateWithSnapshot) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidStateWithSnapshot) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidAttestationReport(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidAttestationReport) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidAttestationReport) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidReceipt(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidReceipt) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidReceipt) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) WatchInvalidReceiptReport(opts *bind.WatchOpts, sink chan<- *inbox.InboxInvalidReceiptReport) (event.Subscription, error) {
                          ret := _m.Called(opts, sink)
                      
                          var r0 event.Subscription
                          if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *inbox.InboxInvalidReceiptReport) event.Subscription); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 899..919
                      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 *IInbox) 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/inbox/mocks/i_inbox.go and 1 other location - About 3 hrs to fix
                      agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 374..394

                      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 *IInbox) FilterInvalidStateWithAttestation(opts *bind.FilterOpts) (*inbox.InboxInvalidStateWithAttestationIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidStateWithAttestationIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidStateWithAttestationIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidAttestation(opts *bind.FilterOpts) (*inbox.InboxInvalidAttestationIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidAttestationIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidAttestationIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidReceipt(opts *bind.FilterOpts) (*inbox.InboxInvalidReceiptIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidReceiptIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidReceiptIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidStateWithSnapshot(opts *bind.FilterOpts) (*inbox.InboxInvalidStateWithSnapshotIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidStateWithSnapshotIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidStateWithSnapshotIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterReceiptAccepted(opts *bind.FilterOpts) (*inbox.InboxReceiptAcceptedIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxReceiptAcceptedIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxReceiptAcceptedIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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/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/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 *IInbox) FilterAttestationAccepted(opts *bind.FilterOpts) (*inbox.InboxAttestationAcceptedIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxAttestationAcceptedIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxAttestationAcceptedIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidAttestationReport(opts *bind.FilterOpts) (*inbox.InboxInvalidAttestationReportIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidAttestationReportIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidAttestationReportIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidReceiptReport(opts *bind.FilterOpts) (*inbox.InboxInvalidReceiptReportIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidReceiptReportIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidReceiptReportIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInvalidStateReport(opts *bind.FilterOpts) (*inbox.InboxInvalidStateReportIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInvalidStateReportIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInvalidStateReportIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 *IInbox) FilterInitialized(opts *bind.FilterOpts) (*inbox.InboxInitializedIterator, error) {
                          ret := _m.Called(opts)
                      
                          var r0 *inbox.InboxInitializedIterator
                          if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *inbox.InboxInitializedIterator); ok {
                      Severity: Major
                      Found in agents/contracts/inbox/mocks/i_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 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/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 30 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) Summit(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/inbox/mocks/i_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/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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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 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/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 *IInbox) 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/inbox/mocks/i_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/lightinbox/mocks/i_light_inbox.go on lines 420..438
                      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 19 locations. Consider refactoring.
                      Open

                      func (_m *IInbox) 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/inbox/mocks/i_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/lightinbox/mocks/i_light_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