DeFiCh/jellyfish

View on GitHub
packages/jellyfish-transaction/src/script/dftx/dftx.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function data has 114 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

  static data (dftx: DfTx<any>): BufferComposer {
    function compose<T> (name: string, asC: (data: SmartBuffer | T) => ComposableBuffer<T>): BufferComposer {
      dftx.name = name
      return ComposableBuffer.single<T>(() => dftx.data, v => dftx.data = v, asC)
    }
Severity: Major
Found in packages/jellyfish-transaction/src/script/dftx/dftx.ts - About 4 hrs to fix

    File dftx.ts has 280 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { SmartBuffer } from 'smart-buffer'
    import { BufferComposer, ComposableBuffer } from '@defichain/jellyfish-buffer'
    import {
      AccountToAccount,
      AccountToUtxos,
    Severity: Minor
    Found in packages/jellyfish-transaction/src/script/dftx/dftx.ts - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status