status-im/status-go

View on GitHub
services/communitytokens/api.go

Summary

Maintainability
B
5 hrs
Test Coverage
F
7%

API has 28 methods (exceeds 21 allowed). Consider refactoring.
Open

type API struct {
    s *Service
}
Severity: Minor
Found in services/communitytokens/api.go - About 3 hrs to fix

    Method API.MintTokens has 7 arguments (exceeds 6 allowed). Consider refactoring.
    Open

    func (api *API) MintTokens(ctx context.Context, chainID uint64, contractAddress string, txArgs transactions.SendTxArgs, password string, walletAddresses []string, amount *bigint.BigInt) (string, error) {
    Severity: Major
    Found in services/communitytokens/api.go - About 35 mins to fix

      Method API.RemoteBurn has 7 arguments (exceeds 6 allowed). Consider refactoring.
      Open

      func (api *API) RemoteBurn(ctx context.Context, chainID uint64, contractAddress string, txArgs transactions.SendTxArgs, password string, tokenIds []*bigint.BigInt, additionalData string) (string, error) {
      Severity: Major
      Found in services/communitytokens/api.go - About 35 mins to fix

        Method API.DeployOwnerToken has 7 arguments (exceeds 6 allowed). Consider refactoring.
        Open

        func (api *API) DeployOwnerToken(ctx context.Context, chainID uint64,
            ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
            signerPubKey string, txArgs transactions.SendTxArgs, password string) (DeploymentDetails, error) {
        Severity: Major
        Found in services/communitytokens/api.go - About 35 mins to fix

          Method API.DeployOwnerTokenEstimate has 7 arguments (exceeds 6 allowed). Consider refactoring.
          Open

          func (api *API) DeployOwnerTokenEstimate(ctx context.Context, chainID uint64, fromAddress string,
              ownerTokenParameters DeploymentParameters, masterTokenParameters DeploymentParameters,
              communityID string, signerPubKey string) (*CommunityTokenFees, error) {
          Severity: Major
          Found in services/communitytokens/api.go - About 35 mins to fix

            There are no issues that match your filters.

            Category
            Status