> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trustblock.run/llms.txt
> Use this file to discover all available pages before exploring further.

# Beta v1.5.0

> Changelog for Trustblock v1.5.0

### <Icon icon="traffic-cone" /> Breaking changes

As we are moving to a new version, we had to make some breaking changes in the Publishing API:

* We simplified the authorization process for reports uploads.

<Accordion title="Check the changes">
  ```git theme={null}
  const uploadAuthResponse = // Request to the above route

  // Get the response's data from the authorization route
  const uploadAuth = uploadAuthResponse.data;

  // Create a form data to send the file over to Pinata
  const formData = new FormData();
  - formData.append('file', file);
  - formData.append(
  - 'pinataMetadata',
  - JSON.stringify({
  -   name: uploadAuth.fileName // Use the name sent by the authorization route
  - })
  - );

  - const pinataOptions = JSON.stringify({
  - cidVersion: 0
  - });
  - formData.append('pinataOptions', pinataOptions);
  + formData.append('file', file);
  + formData.append('pinataMetadata', JSON.stringify(uploadAuth.pinataMetadata));
  + formData.append('pinataOptions', JSON.stringify(uploadAuth.pinataOptions));


  // Perform a POST request on the URL sent by the authorization route
  const uploadResponse = await axios.post<{ IpfsHash: string }>(uploadAuth.url, formData, {
    maxBodyLength: Infinity,
    headers: {
      'Content-Type': `multipart/form-data;`,
      Authorization: `Bearer ${uploadAuth.apiKey}` // Pass the API key sent by the authorization request
    }
  });

  // Here you get the reportFileCid needed by the publish audit route.
  const reportFileCid = uploadResponse.data.IpfsHash;
  ```
</Accordion>

* Changed the `contractType` allowed values:

<Accordion title="Check the new values">
  ```git theme={null}
  - "on_chain"
  - "off_chain"
  - "secret"
  + "onChain"
  + "offChainPublic"
  + "offChainPrivate"
  ```
</Accordion>

<Card title="Publish an audit" icon="paper-plane-top" href="/technical/publish" horizontal>
  Learn how to publish an audit on Trustblock.
</Card>

### <Icon icon="sparkles" /> Product updates

* Updated our TVS third party service.
  * We moved away from dex.guru in favor of <Link href="https://mobula.fi">Mobula</Link> which will provide more accurate and up to date TVL data.
* As of now, metrics are also calculated for auditors who only have off-chain reports.
* Uniformized the display of issues on the project & audit pages.
* Updated the wording of contracts types to better fit our product.
* Added new chains on the auditor onboarding step:
  * Sui
  * Aptos
  * Sustrate -> Polkadot

### <Icon icon="bug-slash" /> Bugs fixed

* Fixed a bug where the profile picture would not be displayed on auditor pages.
* Fixed a bug not accepting discord links invites.
* Fixed a bug where pressing enter on the publish form would not switch to the next step.
* Fixed a bug where projects' images would not be displayed after running a search on Homepage.
* Fixed a bug where the `conductedAt` would not be properly limited.
* Fixed a bug where audits with similar contracts would not be created but the client would not be notified.
* Fixed a bug where similar secret contracts could be created on the same project.

### <Icon icon="bolt" /> Performance, Security & Reliability improvements

* As usual, we improved the performance of the platform.
* Improved our monitoring and alerting systems.
* Improved the performanes on auditor search.
