In a data module elements are put in a ordered sequence.

With <asnx:module> you can define a data module. Inside the asxn tags you put data elements in a certain order.

Code Example

Defining the elements of a data module for an ENS event. All elements are defined as an ethereum type (string, bytes32, address, uint).

<asnx:module name="ENS-Events">
    <namedType name="NameRegistered">
          <element name="name" ethereum:type="string"/>
          <element name="label" ethereum:type="bytes32" ethereum:indexed="true"/>
          <element name="owner" ethereum:type="address" ethereum:indexed="true"/>
          <element name="cost" ethereum:type="uint"/>
          <element name="expires" ethereum:type="uint"/>

Related information

Data Objects

We make tokens smart

Smart Token Labs is the creator of TokenScript and AlphaWallet two open source solutions for a tokenized future.