class ContractTxHash extends TxHash implements Adaptor, Encodable {

  @SuppressWarnings("unchecked")
  @Override
  public <T> T adapt(Class<T> adaptor) {
    if (adaptor.isAssignableFrom(ContractTxHash.class)) {
      return (T) this;
    } else if (adaptor.isAssignableFrom(BlockHash.class)) {
      return (T) BlockHash.of(getBytesValue());
    }
    return null;
  }

  public  ContractTxHash(final String encoded);
  public  ContractTxHash(final BytesValue bytesValue);

}