status-im/status-go

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

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

File l1EthBridge.go has 2299 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 hopL1EthBridge

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

    HopL1EthBridgeSession has 45 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type HopL1EthBridgeSession struct {
        Contract     *HopL1EthBridge   // 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/l1EthBridge/l1EthBridge.go - About 6 hrs to fix

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

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

        HopL1EthBridgeCallerSession has 25 methods (exceeds 21 allowed). Consider refactoring.
        Open

        type HopL1EthBridgeCallerSession struct {
            Contract *HopL1EthBridgeCaller // 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/l1EthBridge/l1EthBridge.go - About 2 hrs to fix

          HopL1EthBridgeCaller has 25 methods (exceeds 21 allowed). Consider refactoring.
          Open

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

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

            func (_HopL1EthBridge *HopL1EthBridgeTransactor) 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/l1EthBridge/l1EthBridge.go - About 1 hr to fix

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

              func (_HopL1EthBridge *HopL1EthBridgeSession) 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/l1EthBridge/l1EthBridge.go - About 1 hr to fix

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

                func (_HopL1EthBridge *HopL1EthBridgeTransactorSession) 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/l1EthBridge/l1EthBridge.go - About 1 hr to fix

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

                  func (_HopL1EthBridge *HopL1EthBridgeTransactor) 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/l1EthBridge/l1EthBridge.go - About 45 mins to fix

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

                    func (_HopL1EthBridge *HopL1EthBridgeTransactor) 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/l1EthBridge/l1EthBridge.go - About 45 mins to fix

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

                      func (_HopL1EthBridge *HopL1EthBridgeCaller) 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/l1EthBridge/l1EthBridge.go - About 45 mins to fix

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

                        func (_HopL1EthBridge *HopL1EthBridgeSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

                          func (_HopL1EthBridge *HopL1EthBridgeTransactorSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

                            func (_HopL1EthBridge *HopL1EthBridgeSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

                              func (_HopL1EthBridge *HopL1EthBridgeTransactorSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

                                func (_HopL1EthBridge *HopL1EthBridgeCallerSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

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

                                  func (_HopL1EthBridge *HopL1EthBridgeSession) 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/l1EthBridge/l1EthBridge.go - About 35 mins to fix

                                    There are no issues that match your filters.

                                    Category
                                    Status