bancor.hpp 658 字节
Newer Older
D
Daniel Larimer 已提交
1 2 3 4
/**
 *  @file
 *  @copyright defined in eos/LICENSE.txt
 */
5
#pragma once
D
Daniel Larimer 已提交
6

7 8 9 10
#include <eosiolib/eos.hpp>
#include <eosiolib/token.hpp>
#include <eosiolib/reflect.hpp>
#include <eosiolib/generic_currency.hpp>
D
Daniel Larimer 已提交
11

12 13
#include <bancor/converter.hpp>
#include <currency/currency.hpp>
D
Daniel Larimer 已提交
14 15

namespace bancor {
16 17 18
   typedef eosio::generic_currency< eosio::token<N(other),S(4,OTHER)> >  other_currency;
   typedef eosio::generic_currency< eosio::token<N(bancor),S(4,RELAY)> > relay_currency;
   typedef eosio::generic_currency< eosio::token<N(currency),S(4,CUR)> > cur_currency;
D
Daniel Larimer 已提交
19

20
   typedef converter<relay_currency, other_currency, cur_currency > example_converter;
D
Daniel Larimer 已提交
21 22
} /// bancor