1
// Copyright © 2017-2020 Trust Wallet.
2
//
3
// This file is part of Trust. The full Trust copyright notice, including
4
// terms governing use, modification, and redistribution, is contained in the
5
// file LICENSE at the root of the source code distribution tree.
6

7
#pragma once
8

9
#include "Asset.h"
10
#include "../Data.h"
11

12
namespace TW::Ontology {
13

14 1
class Ont : public Asset {
15
  private:
16
    static const uint8_t version = 0x00;
17

18 1
    const Data ontContract = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19
                              0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
20

21
  public:
22 1
    Data contractAddress() override { return ontContract; }
23

24
    Transaction decimals(uint32_t nonce) override;
25

26
    Transaction balanceOf(const Address &address, uint32_t nonce) override;
27

28
    Transaction transfer(const Signer &from, const Address &to, uint64_t amount,
29
                         const Signer &payer, uint64_t gasPrice, uint64_t gasLimit,
30
                         uint32_t nonce) override;
31
};
32

33
} // namespace TW::Ontology

Read our documentation on viewing source code .

Loading