Răsfoiți Sursa

token: Move JSON files into contrib directory.

parazyd 4 ani în urmă
părinte
comite
21999eea4b

+ 2 - 2
Makefile

@@ -13,8 +13,8 @@ BINS = drk darkfid
 BINDEPS = \
 	Cargo.toml \
 	$(shell find src -type f) \
-	$(shell find token -type f) \
-	$(shell find sql -type f)
+	$(shell find sql -type f) \
+	$(shell find contrib/token -type f) \
 
 all: $(BINS)
 

+ 0 - 0
token/Makefile → contrib/token/Makefile


+ 0 - 0
token/bitcoin_token_list.json → contrib/token/bitcoin_token_list.json


+ 0 - 0
token/erc20_token_list.json → contrib/token/erc20_token_list.json


+ 0 - 0
token/solana_token_list.json → contrib/token/solana_token_list.json


+ 6 - 3
src/bin/darkfid.rs

@@ -91,9 +91,12 @@ impl Darkfid {
         state: Arc<Mutex<State>>,
         cashiers: Vec<Cashier>,
     ) -> Result<Self> {
-        let sol_tokenlist = TokenList::new(include_bytes!("../../token/solana_token_list.json"))?;
-        let eth_tokenlist = TokenList::new(include_bytes!("../../token/erc20_token_list.json"))?;
-        let btc_tokenlist = TokenList::new(include_bytes!("../../token/bitcoin_token_list.json"))?;
+        let sol_tokenlist =
+            TokenList::new(include_bytes!("../../contrib/token/solana_token_list.json"))?;
+        let eth_tokenlist =
+            TokenList::new(include_bytes!("../../contrib/token/erc20_token_list.json"))?;
+        let btc_tokenlist =
+            TokenList::new(include_bytes!("../../contrib/token/bitcoin_token_list.json"))?;
         let drk_tokenlist = DrkTokenList::new(&sol_tokenlist, &eth_tokenlist, &btc_tokenlist)?;
 
         Ok(Self {