ledger-core
ERC20Token.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from erc20.djinni
3 
4 #ifndef DJINNI_GENERATED_ERC20TOKEN_HPP
5 #define DJINNI_GENERATED_ERC20TOKEN_HPP
6 
7 #include <cstdint>
8 #include <iostream>
9 #include <string>
10 #include <utility>
11 
12 namespace ledger { namespace core { namespace api {
13 
15 struct ERC20Token final {
17  std::string name;
19  std::string symbol;
21  std::string contractAddress;
23  int32_t numberOfDecimal;
24 
25  ERC20Token(std::string name_,
26  std::string symbol_,
27  std::string contractAddress_,
28  int32_t numberOfDecimal_)
29  : name(std::move(name_))
30  , symbol(std::move(symbol_))
31  , contractAddress(std::move(contractAddress_))
32  , numberOfDecimal(std::move(numberOfDecimal_))
33  {}
34 
35  ERC20Token(const ERC20Token& cpy) {
36  this->name = cpy.name;
37  this->symbol = cpy.symbol;
38  this->contractAddress = cpy.contractAddress;
39  this->numberOfDecimal = cpy.numberOfDecimal;
40  }
41 
42  ERC20Token() = default;
43 
44 
45  ERC20Token& operator=(const ERC20Token& cpy) {
46  this->name = cpy.name;
47  this->symbol = cpy.symbol;
48  this->contractAddress = cpy.contractAddress;
49  this->numberOfDecimal = cpy.numberOfDecimal;
50  return *this;
51  }
52 
53  template <class Archive>
54  void load(Archive& archive) {
55  archive(name, symbol, contractAddress, numberOfDecimal);
56  }
57 
58  template <class Archive>
59  void save(Archive& archive) const {
60  archive(name, symbol, contractAddress, numberOfDecimal);
61  }
62 };
63 
64 } } } // namespace ledger::core::api
65 #endif //DJINNI_GENERATED_ERC20TOKEN_HPP
std::string symbol
Definition: ERC20Token.hpp:19
Definition: BitcoinLikeFeePolicy.hpp:29
int32_t numberOfDecimal
Definition: ERC20Token.hpp:23
Definition: Account.cpp:8
std::string name
Definition: ERC20Token.hpp:17
Definition: ERC20Token.hpp:15
std::string contractAddress
Definition: ERC20Token.hpp:21