Constants

Functions

  • Format and transform a base string to a H160 address. In the TEA system, it will be an email string.
  • Transform H160 address to string. In the system, a user’s wallet address as well as token id are both H160.
  • Select random count members from an array.
  • Generate a random length u8 string with the system.
  • Transform string to H160
  • Transform non-length compatible u8 to tea_id ([u8; 32])
  • Transform u8 buffer to u128. This is usually done for Ts in the system.