synapsecns/sanguine

View on GitHub
agents/contracts/origin/mocks/i_origin.go

Summary

Maintainability
F
2 wks
Test Coverage

File i_origin.go has 837 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/origin/mocks/i_origin.go - About 1 day to fix

    IOrigin has 46 methods (exceeds 20 allowed). Consider refactoring.
    Open

    type IOrigin struct {
        mock.Mock
    }
    Severity: Minor
    Found in agents/contracts/origin/mocks/i_origin.go - About 6 hrs to fix

      Method IOrigin.SendBaseMessage has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

      func (_m *IOrigin) SendBaseMessage(opts *bind.TransactOpts, destination uint32, recipient [32]byte, optimisticPeriod uint32, paddedRequest *big.Int, content []byte) (*types.Transaction, error) {
      Severity: Minor
      Found in agents/contracts/origin/mocks/i_origin.go - About 45 mins to fix

        Method IOrigin.WatchSent has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (_m *IOrigin) WatchSent(opts *bind.WatchOpts, sink chan<- *origin.OriginSent, messageHash [][32]byte, nonce []uint32, destination []uint32) (event.Subscription, error) {
        Severity: Minor
        Found in agents/contracts/origin/mocks/i_origin.go - About 35 mins to fix

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

          func (_m *IOrigin) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *origin.OriginOwnershipTransferred, 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<- *origin.OriginOwnershipTransferred, []common.Address, []common.Address) event.Subscription); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 11 other locations - About 4 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1422..1442
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1445..1465
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 798..818
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 821..841
          agents/contracts/inbox/mocks/i_inbox.go on lines 1587..1607
          agents/contracts/inbox/mocks/i_inbox.go on lines 1610..1630
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1242..1262
          agents/contracts/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

          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 *IOrigin) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *origin.OriginOwnershipTransferStarted, 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<- *origin.OriginOwnershipTransferStarted, []common.Address, []common.Address) event.Subscription); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 11 other locations - About 4 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1422..1442
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1445..1465
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 798..818
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 821..841
          agents/contracts/inbox/mocks/i_inbox.go on lines 1587..1607
          agents/contracts/inbox/mocks/i_inbox.go on lines 1610..1630
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1242..1262
          agents/contracts/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 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 *IOrigin) GetMinimumTipsValue(opts *bind.CallOpts, destination uint32, paddedRequest *big.Int, contentLength *big.Int) (*big.Int, error) {
              ret := _m.Called(opts, destination, paddedRequest, contentLength)
          
              var r0 *big.Int
              if rf, ok := ret.Get(0).(func(*bind.CallOpts, uint32, *big.Int, *big.Int) *big.Int); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 1 other location - About 4 hrs to fix
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 321..341

          Duplicated Code

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

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

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

          Tuning

          This issue has a mass of 340.

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

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

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

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

          Refactorings

          Further Reading

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

          func (_m *IOrigin) GetAgent(opts *bind.CallOpts, index *big.Int) (struct {
              Agent  common.Address
              Status origin.AgentStatus
          }, error) {
              ret := _m.Called(opts, index)
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 2 other locations - About 4 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 541..571
          agents/contracts/lightmanager/mocks/i_light_manager.go on lines 426..456

          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 *IOrigin) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*origin.OriginOwnershipTransferStartedIterator, error) {
              ret := _m.Called(opts, previousOwner, newOwner)
          
              var r0 *origin.OriginOwnershipTransferStartedIterator
              if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *origin.OriginOwnershipTransferStartedIterator); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 11 other locations - About 4 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 380..400
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 403..423
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 134..154
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 318..338
          agents/contracts/inbox/mocks/i_inbox.go on lines 341..361
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 272..292
          agents/contracts/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 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 *IOrigin) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*origin.OriginOwnershipTransferredIterator, error) {
              ret := _m.Called(opts, previousOwner, newOwner)
          
              var r0 *origin.OriginOwnershipTransferredIterator
              if rf, ok := ret.Get(0).(func(*bind.FilterOpts, []common.Address, []common.Address) *origin.OriginOwnershipTransferredIterator); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 11 other locations - About 4 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 380..400
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 403..423
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 134..154
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 318..338
          agents/contracts/inbox/mocks/i_inbox.go on lines 341..361
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 272..292
          agents/contracts/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

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

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

          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 *IOrigin) WatchStateSaved(opts *bind.WatchOpts, sink chan<- *origin.OriginStateSaved) (event.Subscription, error) {
              ret := _m.Called(opts, sink)
          
              var r0 event.Subscription
              if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *origin.OriginStateSaved) event.Subscription); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 36 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
          agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
          agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
          agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
          agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
          agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
          agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
          agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
          agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
          agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
          agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
          agents/contracts/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 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 *IOrigin) WatchInitialized(opts *bind.WatchOpts, sink chan<- *origin.OriginInitialized) (event.Subscription, error) {
              ret := _m.Called(opts, sink)
          
              var r0 event.Subscription
              if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *origin.OriginInitialized) event.Subscription); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 36 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
          agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
          agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
          agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
          agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
          agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
          agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
          agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
          agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
          agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
          agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
          agents/contracts/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 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 *IOrigin) WatchTipWithdrawalCompleted(opts *bind.WatchOpts, sink chan<- *origin.OriginTipWithdrawalCompleted) (event.Subscription, error) {
              ret := _m.Called(opts, sink)
          
              var r0 event.Subscription
              if rf, ok := ret.Get(0).(func(*bind.WatchOpts, chan<- *origin.OriginTipWithdrawalCompleted) event.Subscription); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 36 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1330..1350
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1353..1373
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1376..1396
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1399..1419
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1468..1488
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1491..1511
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1514..1534
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 752..772
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 775..795
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 844..864
          agents/contracts/inbox/mocks/i_inbox.go on lines 1380..1400
          agents/contracts/inbox/mocks/i_inbox.go on lines 1403..1423
          agents/contracts/inbox/mocks/i_inbox.go on lines 1426..1446
          agents/contracts/inbox/mocks/i_inbox.go on lines 1449..1469
          agents/contracts/inbox/mocks/i_inbox.go on lines 1472..1492
          agents/contracts/inbox/mocks/i_inbox.go on lines 1495..1515
          agents/contracts/inbox/mocks/i_inbox.go on lines 1518..1538
          agents/contracts/inbox/mocks/i_inbox.go on lines 1541..1561
          agents/contracts/inbox/mocks/i_inbox.go on lines 1564..1584
          agents/contracts/inbox/mocks/i_inbox.go on lines 1633..1653
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1081..1101
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1104..1124
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1127..1147
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1150..1170
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1173..1193
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 1196..1216
          agents/contracts/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

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

          func (_m *IOrigin) ResolveDispute(opts *bind.TransactOpts, slashedIndex uint32, rivalIndex uint32) (*types.Transaction, error) {
              ret := _m.Called(opts, slashedIndex, rivalIndex)
          
              var r0 *types.Transaction
              if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint32, uint32) *types.Transaction); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 3 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 828..848
          agents/contracts/lightmanager/mocks/i_light_manager.go on lines 621..641
          agents/contracts/origin/mocks/i_origin.go on lines 458..478

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

          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 *IOrigin) OpenDispute(opts *bind.TransactOpts, guardIndex uint32, notaryIndex uint32) (*types.Transaction, error) {
              ret := _m.Called(opts, guardIndex, notaryIndex)
          
              var r0 *types.Transaction
              if rf, ok := ret.Get(0).(func(*bind.TransactOpts, uint32, uint32) *types.Transaction); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 3 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 828..848
          agents/contracts/lightmanager/mocks/i_light_manager.go on lines 621..641
          agents/contracts/origin/mocks/i_origin.go on lines 704..724

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

          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 *IOrigin) 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/origin/mocks/i_origin.go and 5 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1286..1306
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 685..705
          agents/contracts/inbox/mocks/i_inbox.go on lines 1152..1172
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 899..919
          agents/contracts/lightmanager/mocks/i_light_manager.go on lines 1135..1155

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

          func (_m *IOrigin) FilterInitialized(opts *bind.FilterOpts) (*origin.OriginInitializedIterator, error) {
              ret := _m.Called(opts)
          
              var r0 *origin.OriginInitializedIterator
              if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *origin.OriginInitializedIterator); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) Initialize(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/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) StatesAmount(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/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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
          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 3 locations. Consider refactoring.
          Open

          func (_m *IOrigin) AgentStatus(opts *bind.CallOpts, agent common.Address) (origin.AgentStatus, error) {
              ret := _m.Called(opts, agent)
          
              var r0 origin.AgentStatus
              if rf, ok := ret.Get(0).(func(*bind.CallOpts, common.Address) origin.AgentStatus); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 2 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 134..152
          agents/contracts/lightmanager/mocks/i_light_manager.go on lines 88..106

          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 *IOrigin) FilterTipWithdrawalCompleted(opts *bind.FilterOpts) (*origin.OriginTipWithdrawalCompletedIterator, error) {
              ret := _m.Called(opts)
          
              var r0 *origin.OriginTipWithdrawalCompletedIterator
              if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *origin.OriginTipWithdrawalCompletedIterator); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) FilterStateSaved(opts *bind.FilterOpts) (*origin.OriginStateSavedIterator, error) {
              ret := _m.Called(opts)
          
              var r0 *origin.OriginStateSavedIterator
              if rf, ok := ret.Get(0).(func(*bind.FilterOpts) *origin.OriginStateSavedIterator); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 64 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 26..46
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 288..308
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 311..331
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 334..354
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 357..377
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 426..446
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 449..469
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 472..492
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 623..643
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 761..781
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1173..1193
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 26..46
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 88..108
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 111..131
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 180..200
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 203..223
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 226..246
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 298..318
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 344..364
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 572..592
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 641..661
          agents/contracts/inbox/mocks/i_inbox.go on lines 26..46
          agents/contracts/inbox/mocks/i_inbox.go on lines 111..131
          agents/contracts/inbox/mocks/i_inbox.go on lines 134..154
          agents/contracts/inbox/mocks/i_inbox.go on lines 157..177
          agents/contracts/inbox/mocks/i_inbox.go on lines 180..200
          agents/contracts/inbox/mocks/i_inbox.go on lines 203..223
          agents/contracts/inbox/mocks/i_inbox.go on lines 226..246
          agents/contracts/inbox/mocks/i_inbox.go on lines 249..269
          agents/contracts/inbox/mocks/i_inbox.go on lines 272..292
          agents/contracts/inbox/mocks/i_inbox.go on lines 295..315
          agents/contracts/inbox/mocks/i_inbox.go on lines 364..384
          agents/contracts/inbox/mocks/i_inbox.go on lines 443..463
          agents/contracts/inbox/mocks/i_inbox.go on lines 947..967
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 26..46
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 111..131
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 134..154
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 157..177
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 180..200
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 203..223
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 226..246
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 249..269
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 351..371
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 29 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
          agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
          agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
          agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
          agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
          agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
          agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
          agents/contracts/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

          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 *IOrigin) 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/origin/mocks/i_origin.go and 29 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
          agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
          agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
          agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
          agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
          agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
          agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 29 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
          agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
          agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
          agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
          agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
          agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
          agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
          agents/contracts/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 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 *IOrigin) GasOracle(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/origin/mocks/i_origin.go and 29 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
          agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
          agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
          agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
          agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
          agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
          agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
          agents/contracts/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 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 *IOrigin) Inbox(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/origin/mocks/i_origin.go and 29 other locations - About 3 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 224..244
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 692..712
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 851..871
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 874..894
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1127..1147
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1242..1262
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 65..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 411..431
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 549..569
          agents/contracts/inbox/mocks/i_inbox.go on lines 65..85
          agents/contracts/inbox/mocks/i_inbox.go on lines 88..108
          agents/contracts/inbox/mocks/i_inbox.go on lines 556..576
          agents/contracts/inbox/mocks/i_inbox.go on lines 579..599
          agents/contracts/inbox/mocks/i_inbox.go on lines 924..944
          agents/contracts/inbox/mocks/i_inbox.go on lines 1108..1128
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 65..85
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 88..108
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 464..484
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 487..507
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 17 other locations - About 2 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
          agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
          agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
          agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 420..438
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 878..896
          agents/contracts/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

          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 *IOrigin) 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/origin/mocks/i_origin.go and 17 other locations - About 2 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
          agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
          agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
          agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 420..438
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 878..896
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 17 other locations - About 2 hrs to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 784..802
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1265..1283
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 1309..1327
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 367..385
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 664..682
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 731..749
          agents/contracts/inbox/mocks/i_inbox.go on lines 512..530
          agents/contracts/inbox/mocks/i_inbox.go on lines 1131..1149
          agents/contracts/inbox/mocks/i_inbox.go on lines 1359..1377
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 420..438
          agents/contracts/lightinbox/mocks/i_light_inbox.go on lines 878..896
          agents/contracts/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 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 *IOrigin) 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/origin/mocks/i_origin.go and 18 other locations - About 1 hr to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 72..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 49..62
          agents/contracts/inbox/mocks/i_inbox.go on lines 49..62
          agents/contracts/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 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

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

          func (_m *IOrigin) Parser() origin.Parser {
              ret := _m.Called()
          
              var r0 origin.Parser
              if rf, ok := ret.Get(0).(func() origin.Parser); ok {
          Severity: Major
          Found in agents/contracts/origin/mocks/i_origin.go and 18 other locations - About 1 hr to fix
          agents/contracts/bondingmanager/mocks/i_bonding_manager.go on lines 72..85
          agents/contracts/gasoracle/mocks/i_gas_oracle.go on lines 49..62
          agents/contracts/inbox/mocks/i_inbox.go on lines 49..62
          agents/contracts/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
          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