status-im/status-go

View on GitHub
contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

File l2ArbitrumBridge.go has 2099 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 hopL2ArbitrumBridge

Severity: Major
Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 3 days to fix

    HopL2ArbitrumBridgeSession has 51 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type HopL2ArbitrumBridgeSession struct {
        Contract     *HopL2ArbitrumBridge // 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: Major
    Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 7 hrs to fix

      HopL2ArbitrumBridgeFilterer has 36 methods (exceeds 21 allowed). Consider refactoring.
      Open

      type HopL2ArbitrumBridgeFilterer struct {
          contract *bind.BoundContract // Generic contract wrapper for the low level calls
      }
      Severity: Minor
      Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 4 hrs to fix

        HopL2ArbitrumBridgeCallerSession has 26 methods (exceeds 21 allowed). Consider refactoring.
        Open

        type HopL2ArbitrumBridgeCallerSession struct {
            Contract *HopL2ArbitrumBridgeCaller // 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 2 hrs to fix

          HopL2ArbitrumBridgeCaller has 26 methods (exceeds 21 allowed). Consider refactoring.
          Open

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

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

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

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

              type HopL2ArbitrumBridgeTransactorSession struct {
                  Contract     *HopL2ArbitrumBridgeTransactor // 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 2 hrs to fix

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

                func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 1 hr to fix

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

                  func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactorSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 1 hr to fix

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

                    func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 1 hr to fix

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

                      func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeCaller) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 45 mins to fix

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

                        func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 45 mins to fix

                          Method HopL2ArbitrumBridgeTransactor.BondWithdrawalAndDistribute has 7 arguments (exceeds 6 allowed). Consider refactoring.
                          Open

                          func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) BondWithdrawalAndDistribute(opts *bind.TransactOpts, recipient common.Address, amount *big.Int, transferNonce [32]byte, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
                          Severity: Major
                          Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

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

                            func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

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

                              func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeCallerSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

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

                                func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactorSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

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

                                  func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeSession) 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

                                    Method HopL2ArbitrumBridgeTransactor.Distribute has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                    Open

                                    func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) Distribute(opts *bind.TransactOpts, 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/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

                                      Method HopL2ArbitrumBridgeTransactor.Send has 7 arguments (exceeds 6 allowed). Consider refactoring.
                                      Open

                                      func (_HopL2ArbitrumBridge *HopL2ArbitrumBridgeTransactor) Send(opts *bind.TransactOpts, chainId *big.Int, recipient common.Address, amount *big.Int, bonderFee *big.Int, amountOutMin *big.Int, deadline *big.Int) (*types.Transaction, error) {
                                      Severity: Major
                                      Found in contracts/hop/l2Contracts/l2ArbitrumBridge/l2ArbitrumBridge.go - About 35 mins to fix

                                        There are no issues that match your filters.

                                        Category
                                        Status