status-im/status-go

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

Summary

Maintainability
F
1 wk
Test Coverage
F
0%

File l1Erc20Bridge.go has 2314 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 hopL1Erc20Bridge

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

    HopL1Erc20BridgeSession has 46 methods (exceeds 21 allowed). Consider refactoring.
    Open

    type HopL1Erc20BridgeSession struct {
        Contract     *HopL1Erc20Bridge // 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/l1Erc20Bridge/l1Erc20Bridge.go - About 6 hrs to fix

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

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

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

        type HopL1Erc20BridgeCallerSession struct {
            Contract *HopL1Erc20BridgeCaller // 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/l1Erc20Bridge/l1Erc20Bridge.go - About 2 hrs to fix

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

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

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

            func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactor) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 1 hr to fix

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

              func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactorSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 1 hr to fix

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

                func (_HopL1Erc20Bridge *HopL1Erc20BridgeSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 1 hr to fix

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

                  func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactor) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 45 mins to fix

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

                    func (_HopL1Erc20Bridge *HopL1Erc20BridgeCaller) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 45 mins to fix

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

                      func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactor) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 45 mins to fix

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

                        func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactorSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

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

                          func (_HopL1Erc20Bridge *HopL1Erc20BridgeSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

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

                            func (_HopL1Erc20Bridge *HopL1Erc20BridgeCallerSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

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

                              func (_HopL1Erc20Bridge *HopL1Erc20BridgeTransactorSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

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

                                func (_HopL1Erc20Bridge *HopL1Erc20BridgeSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

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

                                  func (_HopL1Erc20Bridge *HopL1Erc20BridgeSession) 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/l1Erc20Bridge/l1Erc20Bridge.go - About 35 mins to fix

                                    There are no issues that match your filters.

                                    Category
                                    Status