status-im/status-go

View on GitHub
contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

File l1HopBridge.go has 2347 lines of code (exceeds 900 allowed). Consider refactoring.
Open

// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.

package hopL1HopBridge

Severity: Major
Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 4 days to fix

    HopL1HopBridgeSession has 49 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type HopL1HopBridgeSession struct {
        Contract     *HopL1HopBridge   // Generic contract binding to set the session for
        CallOpts     bind.CallOpts     // Call options to use throughout this session
        TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    }
    Severity: Minor
    Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 6 hrs to fix

      HopL1HopBridgeFilterer has 42 methods (exceeds 21 allowed). Consider refactoring.
      Open

      type HopL1HopBridgeFilterer struct {
          contract *bind.BoundContract // Generic contract wrapper for the low level calls
      }
      Severity: Minor
      Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 5 hrs to fix

        HopL1HopBridgeCaller has 27 methods (exceeds 21 allowed). Consider refactoring.
        Open

        type HopL1HopBridgeCaller struct {
            contract *bind.BoundContract // Generic contract wrapper for the low level calls
        }
        Severity: Minor
        Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 3 hrs to fix

          HopL1HopBridgeCallerSession has 27 methods (exceeds 21 allowed). Consider refactoring.
          Open

          type HopL1HopBridgeCallerSession struct {
              Contract *HopL1HopBridgeCaller // Generic contract caller binding to set the session for
              CallOpts bind.CallOpts         // Call options to use throughout this session
          }
          Severity: Minor
          Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 3 hrs to fix

            HopL1HopBridgeTransactorSession has 22 methods (exceeds 21 allowed). Consider refactoring.
            Open

            type HopL1HopBridgeTransactorSession struct {
                Contract     *HopL1HopBridgeTransactor // Generic contract transactor binding to set the session for
                TransactOpts bind.TransactOpts         // Transaction auth options to use throughout this session
            }
            Severity: Minor
            Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 2 hrs to fix

              HopL1HopBridgeTransactor has 22 methods (exceeds 21 allowed). Consider refactoring.
              Open

              type HopL1HopBridgeTransactor struct {
                  contract *bind.BoundContract // Generic contract wrapper for the low level calls
              }
              Severity: Minor
              Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 2 hrs to fix

                Method HopL1HopBridgeTransactor.Withdraw has 12 arguments (exceeds 6 allowed). Consider refactoring.
                Open

                func (_HopL1HopBridge *HopL1HopBridgeTransactor) Withdraw(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                Severity: Major
                Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 1 hr to fix

                  Method HopL1HopBridgeSession.Withdraw has 11 arguments (exceeds 6 allowed). Consider refactoring.
                  Open

                  func (_HopL1HopBridge *HopL1HopBridgeSession) Withdraw(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                  Severity: Major
                  Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 1 hr to fix

                    Method HopL1HopBridgeTransactorSession.Withdraw has 11 arguments (exceeds 6 allowed). Consider refactoring.
                    Open

                    func (_HopL1HopBridge *HopL1HopBridgeTransactorSession) Withdraw(recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                    Severity: Major
                    Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 1 hr to fix

                      Method HopL1HopBridgeTransactor.SendToL2 has 8 arguments (exceeds 6 allowed). Consider refactoring.
                      Open

                      func (_HopL1HopBridge *HopL1HopBridgeTransactor) SendToL2(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
                      Severity: Major
                      Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 45 mins to fix

                        Method HopL1HopBridgeCaller.GetTransferId has 8 arguments (exceeds 6 allowed). Consider refactoring.
                        Open

                        func (_HopL1HopBridge *HopL1HopBridgeCaller) GetTransferId(opts *bind.CallOpts, chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
                        Severity: Major
                        Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 45 mins to fix

                          Method HopL1HopBridgeTransactor.SettleBondedWithdrawal has 8 arguments (exceeds 6 allowed). Consider refactoring.
                          Open

                          func (_HopL1HopBridge *HopL1HopBridgeTransactor) SettleBondedWithdrawal(opts *bind.TransactOpts, bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                          Severity: Major
                          Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 45 mins to fix

                            Method HopL1HopBridgeTransactorSession.SendToL2 has 7 arguments (exceeds 6 allowed). Consider refactoring.
                            Open

                            func (_HopL1HopBridge *HopL1HopBridgeTransactorSession) SendToL2(chainId *big.Int, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
                            Severity: Major
                            Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                              Method HopL1HopBridgeSession.SettleBondedWithdrawal has 7 arguments (exceeds 6 allowed). Consider refactoring.
                              Open

                              func (_HopL1HopBridge *HopL1HopBridgeSession) SettleBondedWithdrawal(bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                              Severity: Major
                              Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                                Method HopL1HopBridgeTransactorSession.SettleBondedWithdrawal has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                Open

                                func (_HopL1HopBridge *HopL1HopBridgeTransactorSession) SettleBondedWithdrawal(bonder common.Address, transferId [32]byte, rootHash [32]byte, transferRootTotalAmount *big.Int, transferIdTreeIndex *big.Int, siblings [][32]byte, totalLeaves *big.Int) (*types.Transaction, error) {
                                Severity: Major
                                Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                                  Method HopL1HopBridgeSession.GetTransferId has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                  Open

                                  func (_HopL1HopBridge *HopL1HopBridgeSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
                                  Severity: Major
                                  Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                                    Method HopL1HopBridgeSession.SendToL2 has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                    Open

                                    func (_HopL1HopBridge *HopL1HopBridgeSession) SendToL2(chainId *big.Int, recipient common.Address, amount *big.Int, amountOutMin *big.Int, deadline *big.Int, relayer common.Address, relayerFee *big.Int) (*types.Transaction, error) {
                                    Severity: Major
                                    Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                                      Method HopL1HopBridgeCallerSession.GetTransferId has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                      Open

                                      func (_HopL1HopBridge *HopL1HopBridgeCallerSession) GetTransferId(chainId *big.Int, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) ([32]byte, error) {
                                      Severity: Major
                                      Found in contracts/hop/l1Contracts/l1HopBridge/l1HopBridge.go - About 35 mins to fix

                                        There are no issues that match your filters.

                                        Category
                                        Status