Commit Graph

1745 Commits

Author SHA1 Message Date
ghassmo
61cf278c6c btc: check if there is keypair path in cashierd.toml before generate new one 2021-10-15 07:16:57 +03:00
Janus
54c4f20561 Add tests for keypairs 2021-10-14 22:12:53 -04:00
Janus
085edb5e71 Update todo.md items 2021-10-14 15:56:51 -04:00
Janus
c41b8714d8 Simplify btc unsubscribe 2021-10-14 15:53:38 -04:00
Janus
b6f3bc6cd4 Fix btc subscription handling and key derivation 2021-10-14 15:42:50 -04:00
Janus
46de83801e Use btc genesis coinbase as token identifier 2021-10-14 13:43:37 -04:00
Janus
c1d90de745 Serialize and post raw btc tx to electrum 2021-10-14 09:05:40 -04:00
ghassmo
c40e34c094 cashierd: catch bridge messages and send proper error message to the user 2021-10-14 14:49:13 +03:00
ghassmo
a61edf5bdf sol: don't send deposit address when there is no enough fund in main
account
2021-10-14 14:23:44 +03:00
ghassmo
5e5f9fa0a4 util/parse: more tests to truncate function 2021-10-14 14:21:13 +03:00
ghassmo
9e03e020fd bridge: reverse truncate when withdraw the token 2021-10-14 10:26:50 +03:00
ghassmo
55491c2d0c util/parse: add more tests for truncate function 2021-10-14 10:26:50 +03:00
ghassmo
54edda9a9e cashierd: truncate received tokens amount to 8 decimals 2021-10-14 10:26:50 +03:00
ghassmo
22e92c659b util/parse: add truncate function 2021-10-14 10:26:50 +03:00
ghassmo
27bd5e741f drk: print clear message when transfer is done 2021-10-14 10:26:50 +03:00
ghassmo
7cdd958a99 bridge: add decimals of token to TokenNotification struct 2021-10-14 10:26:50 +03:00
lunar-mining
d249a4a683 todo: added #token section 2021-10-14 08:43:44 +02:00
Janus
a18d18161c Add remaining steps for btc to todo 2021-10-13 17:04:15 -04:00
Janus
1aa3dfc177 Update README instructions 2021-10-13 16:01:56 -04:00
ghassmo
d9fba03797 cashierdb: fix bug when truncate the received amount 2021-10-13 18:06:10 +03:00
ghassmo
573f7541d9 cashierdb: fix bug 2021-10-13 17:56:43 +03:00
ghassmo
9c3dadbae1 sol: minor changes 2021-10-13 17:55:45 +03:00
ghassmo
0e10a7da76 sol: calculate fee when check main account balance 2021-10-13 17:28:19 +03:00
ghassmo
69776a1801 organize the order of using dependencies across the whole project 2021-10-13 16:54:20 +03:00
ghassmo
a446623137 sol: print warn message when there is no enough funds in the main account 2021-10-13 16:40:43 +03:00
ghassmo
8767b7c068 update todo.md 2021-10-13 16:29:51 +03:00
ghassmo
cba6ef2555 more clean up 2021-10-13 16:27:32 +03:00
ghassmo
b974aa4663 Client: clean up 2021-10-13 16:21:29 +03:00
ghassmo
1d23d4c29d darkfid: clean up 2021-10-13 16:16:40 +03:00
ghassmo
581dfd89de error: add CashierKeysNotFound error 2021-10-13 16:16:23 +03:00
ghassmo
7b01ea9bea Merge branch 'cashier_public_keys' 2021-10-13 16:07:31 +03:00
ghassmo
a73da61ec0 sepreate state object from Client 2021-10-13 15:53:49 +03:00
ghassmo
b67a8d039d remove get_cashier_public() test from walletdb 2021-10-13 15:53:23 +03:00
ghassmo
1607db79b7 remove build_tx.rs test bin 2021-10-13 15:53:02 +03:00
lunar-mining
165b8be75f cashierd: empty vector hack to make client compile 2021-10-13 13:56:52 +02:00
lunar-mining
38ce524865 darkfid: error handling for empty cashier pub key 2021-10-13 13:56:21 +02:00
lunar-mining
85d9590516 simplified naming of cashier params 2021-10-13 11:26:17 +02:00
lunar-mining
d97bb6427e build_tx: added cashier vec to State 2021-10-13 11:14:56 +02:00
lunar-mining
d761eadeb2 cashierd: pass empty key vector to Client 2021-10-13 11:04:41 +02:00
lunar-mining
c0ba3d75d1 client::State: updated is_valid_cashier_public_key 2021-10-13 10:41:14 +02:00
Janus
5d72769fe0 Add signing for btc transactions 2021-10-13 02:33:19 -04:00
Janus
9dda5ceab1 Implement subscribe with keypair on btc 2021-10-13 02:33:19 -04:00
Janus
e9aca1dbf5 Build transactions with btc 2021-10-13 02:33:19 -04:00
lunar-mining
624ba86c02 darkfid, client: added cashier_public_keys vector
disabled public key check
2021-10-12 14:25:37 +02:00
lunar-mining
417c0d902b walletdb: disabled get_cashier_public 2021-10-12 14:25:03 +02:00
lunar-mining
be67c352ef schema.sql: removed cashier table 2021-10-12 13:56:36 +02:00
lunar-mining
c8fb0f35e4 darkfid: updated rpc url to read from cashier vec
disabled cashier config options from darkfid cli
2021-10-12 13:55:28 +02:00
lunar-mining
8ff0303cb4 cli/ config: added cashier vec to darkfid.toml 2021-10-12 13:30:41 +02:00
lunar-mining
e5da4c6d8e example/ config: added cashier vec to darkfid.toml 2021-10-12 13:30:23 +02:00
ghassmo
b8c05892c4 darkfid: more clean up in get_balances() function 2021-10-12 13:04:44 +03:00