Skip to main content

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.
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;
  • Changed the contractType allowed values:
- "on_chain"
- "off_chain"
- "secret"
+ "onChain"
+ "offChainPublic"
+ "offChainPrivate"

Publish an audit

Learn how to publish an audit on Trustblock.

Product updates

  • Updated our TVS third party service.
    • We moved away from dex.guru in favor of Mobula 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

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.

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.