Skip to content

v1.0.0

Compare
Choose a tag to compare
@milapsheth milapsheth released this 06 Dec 20:47
· 49 commits to main since this release

CHANGELOG

The major changes in this stable release compared to the beta release are:

  • Tokens can be transferred directly via the ITS contract instead of TokenManagers, i.e provide the ERC20 approval (not needed for mint/burn tokens) to the ITS contract instead of the TokenManager.
  • Separate TokenManager implementations have been consolidated into a TokenHandler contract. This doesn't affect the API.
  • interchainTransfer now takes a gasValue param. This allows it to be used within a multicall (for e.g. transfer tokens to multiple chains in one tx).
  • InterchainTransfer event has a new dataHash field. This is set to keccak256(data) if a destination contract is being called with the transfer, and bytes32(0) otherwise. InterchainTransferWithData event type was removed as a result.
  • InterchainTokenExecutable.executeWithInterchainToken now takes commandId as well to allow apps to track individual messages. Similar change for the express executable.
  • Distributable has been renamed to Minter for clarity. You can call transferMintership to transfer mint rights to a token.
  • Removed support for deploy + transfer to remote chains in InterchainTokenFactory to reduce complexity. InterchainTokenFactory.deployInterchainToken will now mint the initial supply directly to the sender/deployer address. There is no need to transfer tokens from the factory to the sender anymore.
  • Renamed BaseInterchainToken to InterchainTokenStandard, and removed the coupling with an ERC20 implementation. Custom interchain tokens can now inherit InterchainTokenStandard directly to benefit from interchain transfer support.
  • Switch to using a minimal proxy for InterchainToken deployments to reduce gas usage significantly and support auto-proxy verification on explorers.
  • Passing bytes4(uint32(1)) as the metadata version will pay for an express call on the gas service. This is relevant for an express relayer.
  • Misc bug fixes, test coverage, and improvements.

What's Changed

Full Changelog: v1.0.0-beta.4...v1.0.0