How to use the @truffle/codec.Utils.AbiUtils function in @truffle/codec

To help you get started, we’ve selected a few @truffle/codec examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github trufflesuite / truffle / packages / debugger / lib / data / selectors / index.js View on Github external
binary,
    contractId,
    contractKind,
    isConstructor,
    abi,
    payable,
    compiler
  } = context;
  return {
    context: contextHash,
    contractName,
    binary,
    contractId,
    contractKind,
    isConstructor,
    abi: CodecUtils.AbiUtils.computeSelectors(abi),
    payable,
    compiler
  };
}
github trufflesuite / truffle / packages / debugger / lib / evm / reducers.js View on Github external
return {
        ...state,
        byContext: {
          ...state.byContext,
          [context]: {
            contractName,
            context,
            binary,
            sourceMap,
            primarySource,
            compiler,
            abi,
            contractId,
            contractKind,
            isConstructor,
            payable: CodecUtils.AbiUtils.abiHasPayableFallback(abi)
          }
        }
      };

    case actions.NORMALIZE_CONTEXTS:
      return {
        byContext: CodecUtils.ContextUtils.normalizeContexts(state.byContext)
      };

    /*
     * Default case
     */
    default:
      return state;
  }
}