发送同质化代币

一次成功的同质化代币发送,根据该转移在代币时间线中是向前还是向后移动,会产生两种状态转换:
  1. 发送方链是源链,也就是说,转移到除其此前接收来源链之外的任意链,都是沿代币时间线向前移动。这会导致以下状态转换:
    • 这些代币会在发送方链上转入一个托管地址(即被锁定)。
    • 这些代币会通过 IBC TAO 逻辑转移到接收链。
  2. 发送方链是汇链,也就是说,该代币被发回到此前接收它的那条链。这是沿代币时间线向后移动。这会导致以下状态转换:
    • 这些代币(凭证)会在发送方链上被销毁。
    • 这些代币会通过 IBC TAO 逻辑转移到接收链。

接收同质化代币

一次成功的同质化代币接收,根据该转移在代币时间线中是向前还是向后移动,会产生两种状态转换:
  1. 接收方链是源链。这是沿代币时间线向后移动。这会导致以下状态转换:
    • 代币面额前缀中最左侧的端口与通道标识符对会被移除。
    • 这些代币会被解除托管,并发送到接收地址。
  2. 接收方链是汇链。这是沿代币时间线向前移动。这会导致以下状态转换:
    • 通过在追踪信息前添加目标端口和通道标识符,铸造代币凭证。
    • 接收链会将新的追踪信息存储到存储中(如果此前尚未设置)。
    • 这些凭证会被发送到接收地址。

Send fungible tokens

A successful fungible token send has two state transitions depending if the transfer is a movement forward or backwards in the token’s timeline:
  1. Sender chain is the source chain, i.e a transfer to any chain other than the one it was previously received from is a movement forwards in the token’s timeline. This results in the following state transitions:
    • The coins are transferred to an escrow address (i.e locked) on the sender chain.
    • The coins are transferred to the receiving chain through IBC TAO logic.
  2. Sender chain is the sink chain, i.e the token is sent back to the chain it previously received from. This is a backwards movement in the token’s timeline. This results in the following state transitions:
    • The coins (vouchers) are burned on the sender chain.
    • The coins are transferred to the receiving chain through IBC TAO logic.

Receive fungible tokens

A successful fungible token receive has two state transitions depending if the transfer is a movement forward or backwards in the token’s timeline:
  1. Receiver chain is the source chain. This is a backwards movement in the token’s timeline. This results in the following state transitions:
    • The leftmost port and channel identifier pair is removed from the token denomination prefix.
    • The tokens are unescrowed and sent to the receiving address.
  2. Receiver chain is the sink chain. This is a movement forwards in the token’s timeline. This results in the following state transitions:
    • Token vouchers are minted by prefixing the destination port and channel identifiers to the trace information.
    • The receiving chain stores the new trace information in the store (if not set already).
    • The vouchers are sent to the receiving address.