Commit Graph

654 Commits

Author SHA1 Message Date
ghassmo
2eba4b6758 update todo.md 2021-09-12 02:13:06 +03:00
ghassmo
f765c60558 finish sol client for cashier's bridge 2021-09-12 01:51:10 +03:00
ghassmo
be4746324b add SolFailed error to error.rs 2021-09-12 01:41:46 +03:00
ghassmo
03ebecbbb9 impl Encodable and Decodable for [u8; 64] 2021-09-12 01:40:42 +03:00
ghassmo
44a2d95370 fix errors related to sterilization of addresses between rpc and cashier 2021-09-10 19:01:46 +03:00
ghassmo
fecbb7894b initialize walletdb when darkfid start 2021-09-10 15:35:56 +03:00
ghassmo
bbe0ce5643 pass asset_id when send request to cashier 2021-09-10 14:36:46 +03:00
ghassmo
9f8444d699 Merge branch 'master' of github.com:darkrenaissance/darkfi 2021-09-10 13:09:29 +03:00
ghassmo
df97ccf8fb make [btc] feature optional and the default one & enable [sol] as optional feature 2021-09-10 13:02:43 +03:00
ghassmo
0e34beb106 add sol struct to the bridge 2021-09-10 13:02:01 +03:00
ghassmo
7f1ba3f882 creat bridge and add refactoring cashier to work with bridge 2021-09-10 12:59:53 +03:00
lunar-mining
edb25d3a17 deleted zkvm 2021-09-10 10:16:28 +02:00
lunar-mining
75296e9083 more verbose no config warning 2021-09-10 10:12:07 +02:00
lunar-mining
a5ad575695 removed redundant serde default tag 2021-09-10 10:04:41 +02:00
ghassmo
afae1cc619 make cashierdb generic and use asset_id with each keys saved 2021-09-09 15:20:31 +03:00
ghassmo
606cf7a3a8 impl Decodable and Encodable for btc address 2021-09-09 14:22:23 +03:00
ghassmo
1e210f9945 create new error type for btc client 2021-09-09 13:59:06 +03:00
lunar-mining
b37eebeb91 ran cargo fmt 2021-09-09 09:10:00 +02:00
lunar-mining
399dffa7e5 removed default config and added ConfigNotFound error 2021-09-09 09:09:19 +02:00
parazyd
124ded7ebd rpc/jsonrpc: Don't use return keyword. 2021-09-08 17:07:49 +02:00
parazyd
5e3a5c9870 solana: Add POC for watching pubkeys for transactions. 2021-09-08 16:54:54 +02:00
ghassmo
1269c594f8 Client: add clear_inputs option when build tx 2021-09-08 17:52:08 +03:00
ghassmo
af8851aaa4 call wallet init_db() function when cashier daemon start 2021-09-08 17:16:15 +03:00
ghassmo
5fe2970827 refactoring and cleaning up functions inside cashierdb 2021-09-08 17:01:17 +03:00
ghassmo
48a058f16b client notify cashier once receive Coin and successfully decrypted 2021-09-08 15:18:00 +03:00
ghassmo
7d1d97c5ba Add a function to cashierdb to get all withdraws private keys and a
function to delete withdraws keys records by btc address
2021-09-08 15:16:06 +03:00
ghassmo
d32884c75a clean up mint_dbtc function in cashier service 2021-09-08 01:39:01 +03:00
ghassmo
126decbd94 Client: minor changes 2021-09-08 01:38:27 +03:00
ghassmo
4f0ab6e569 remove keys related functions in cashierdb and remove keys table from cashierdb's schema. cashier no longer handle private and public keys 2021-09-08 01:30:00 +03:00
ghassmo
4fe2138dfd remove warning messages 2021-09-08 01:29:16 +03:00
ghassmo
4b494624d0 move duplicate functions in walletdb and cashierdb to walletapi 2021-09-08 01:14:38 +03:00
ghassmo
1ac21e5c5b Client: add send function and send the tx with a desired inputs and outputs according to the amount 2021-09-07 22:46:42 +03:00
ghassmo
bb290b1fb6 make OwnCoin struct instead of tuple 2021-09-07 22:36:25 +03:00
ghassmo
4e607b2696 add keypair to cashier wallet when call key_gen() function 2021-09-07 22:33:51 +03:00
ghassmo
493c5fb2f9 add more errors to ClientField enum 2021-09-07 22:32:39 +03:00
ghassmo
98042a3e90 fix a bug in cashierdb test 2021-09-07 20:16:07 +03:00
ghassmo
33ae156f3c create WalletApi trait and implement it for both cashierdb and walletdb 2021-09-07 15:28:21 +03:00
ghassmo
c1b145517f cargo fmt 2021-09-07 12:45:37 +03:00
ghassmo
c4aa2bab33 add test cases to cashierdb 2021-09-07 12:44:48 +03:00
ghassmo
e9bbba839c unify the order of keypair inside cashierdb 2021-09-07 12:41:57 +03:00
ghassmo
8463e9c3a7 fix typo in walletdb destroy function 2021-09-07 12:39:03 +03:00
ghassmo
ca438923b0 change the way of constructing both walletdb and cashierdb 2021-09-07 11:50:12 +03:00
ghassmo
7a0c98682a key_gen() generating new keypair and add them to walletdb 2021-09-05 13:23:00 +03:00
ghassmo
78832bed3f check from walletdb if the cashier public key is valid 2021-09-05 12:40:35 +03:00
ghassmo
4c7493acf8 downgrade clap crate to 2.33.3 version 2021-09-05 12:32:12 +03:00
ghassmo
491762dfa8 create walletdb field for state and avoid using walletdb in other places 2021-09-05 11:08:36 +03:00
ghassmo
cda82fce68 get witnesses and update them through walletdb 2021-09-05 10:15:56 +03:00
ghassmo
023d75c46e change the paths of mint and spend params from project dir to the .config/darkfi 2021-09-04 15:55:04 +03:00
ghassmo
da8aab6c29 remove unused fields in WalletDb 2021-09-04 15:45:55 +03:00
ghassmo
ce56a17697 change the name of client rpc adapter and move it to src/rpc dir 2021-09-04 01:47:50 +03:00