Element

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">
      <type>
        <sequence>
          <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"/>
        </sequence>
      </type>
    </namedType>
</asnx:module>