Skip to content

Commit

Permalink
readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
lotus-mile committed Oct 27, 2018
1 parent 9f993d2 commit be1621f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Readme.md
Expand Up @@ -72,6 +72,27 @@ Build addon milecsa mudule on **mac os**:
1. Ubuntu 18.4
1. OSX 10.13, XCode10


### Token properties

```cpp
#include "milecsa_light_api.hpp"

// available tokens:
milecsa::token stable = milecsa::assets::XDR;
milecsa::token index = milecsa::assets::MILE;

// Properties
std::cout << "Name: " << stable.name;
std::cout << "Code: " << stable.code;
std::cout << "Precision: " << stable.precision;

// Fixed point conversion to string presentation
std::string amount = asset.value_to_string(100.1f);


```

### Wallet public/private keys Pair class

```cpp
Expand Down

0 comments on commit be1621f

Please sign in to comment.