Dan Doca

Humans.ai · November 2023

Synapse

The bridge between Ethereum and the Humans chain.

I built Synapse across the whole stack: its smart contracts and their audits, the backend, the wallet integration and signing flow, work across the frontend, and the walkthrough and video demos.

For
Humans.ai
Role
Blockchain Developer (contract via Artdevium)
Announced
23 November 2023

What it does

HEART exists on two chains: as an ERC-20 token on Ethereum and as the native token of the Humans chain. Synapse moves it from one to the other, in either direction, from a MetaMask wallet.

A transfer

  1. EthereumHEARTERC-20 token
  2. ApproveAllow the bridge to spend the token.
  3. DepositSend it to the bridge.
  4. SwitchChange to the destination network.
  5. ClaimCollect native HEART there.
  6. Humans chainHEARTNative token

Every step is signed in MetaMask, and the same steps run back to Ethereum. Humans.ai's launch post describes smart contracts and validators managing and approving each transfer.

What I built

Every layer of the bridge has my work in it.

  • Solidity
  • TypeScript
  • ethers.js
  • Ethereum
  • Humans chain
  • MetaMask

Audits

AuditOne and Blaize both audited Synapse, and taking it through them was my job. AuditOne's manual review ran from 22 September to 18 October 2023 and covered the bridge contract, the API and the web flow, from connecting the wallets to deposit, refund and withdraw. Both reports are public.

Source

Contact

Questions about any of this are welcome. The fastest way to reach me is email.