IoTeX client
address.h
1#ifndef IOTEX_ADDRESS_H
2#define IOTEX_ADDRESS_H
3
4#include "IoTeXConstants.h"
5#include <stdint.h>
6
7namespace iotex
8{
9enum AddressFormat
10{
11 IO,
12 ETH
13};
14
16{
17 public:
18 Address(const char* address, AddressFormat format);
19
20 const char* Io();
21
22 const char* Eth();
23
24 const uint8_t* Bytes();
25
26 private:
27 char _io[IOTEX_ADDRESS_C_STRING_SIZE];
28 char _eth[ETH_ADDRESS_C_STRING_SIZE];
29 uint8_t _bytes[ETH_ADDRESS_SIZE];
30
31 void ConstructFromEth(const char* address);
32};
33} // namespace iotex
34
35#endif
Definition: address.h:16
Definition: abi.h:12