Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bip32_bip44'
Browse files Browse the repository at this point in the history
  • Loading branch information
swordlet committed Apr 5, 2023
2 parents 87dcff8 + 3bcaef4 commit 4d4d74b
Show file tree
Hide file tree
Showing 158 changed files with 19,813 additions and 7,404 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
storage/
storage-testnet/
*.dat
*.bin
main
goXdagWallet
go_build_goXdagWallet
goXdagWallet.exe
goXdagWallet.exe~
libxdag_*.a
*.exe
*.apk
*.app
Expand Down
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,37 @@ Fyne is a cross-platform GUI in Go inspired by Material Design.
The wallet can run on Windows, Linux, Mac now.

Mobile version is coming.
## usage
- usage: by command-line parameter -help
- 3 run modes: gui(default), cli, server, by commnad-line parameter -mode
- cli commands:
- help -- display commands list
- exit -- exit cli wallet
- account -- display address of wallet account
- balance -- display balance of wallet account
- xfer V A R -- transfer V coins to address A with remark R
- mnemonic -- display mnemonic of wallet account
- export P -- export mnemonic to file P
- jsonrpc server: by command-line parameter -mode server -ip \<ip address\> -port \<port number\>
- method: Xdag.Unlock
- params: ["\<wallet password\>"]
- response: {"id":1,"result":"success","error":null}
- method: Xdag.Lock
- params: ["\<wallet password\>"]
- response: {"id":1,"result":"success","error":null}
- method: Xdag.Account
- params: [""]
- response: {"id":1,"result": "\<wallet address\>","error":null}
- method: Xdag.Balance
- params: [""]
- response: {"id":1,"result": "\<wallet balance\>","error":null}
- method: Xdag.Balance
- params: ["\<wallet address\>"]
- response: {"id":1,"result": "\<balance of the address\>","error":null}
- method: Xdag.Transfer
- params: [{"amount":"\<amount\>","address":"\<to address\>","remark":"\<remark\>"}]
- response: {"id":1,"result": "success","error":null}

## repo structure
- clib - a wrapper of XDAG Wallet C library
- xDagWallet - XDAG wallet C library
Expand All @@ -18,6 +49,9 @@ Mobile version is coming.
- config - wallet config
- wallet_state - wallet state
- xlog - wallet log
- xdago - bip32,bip39,bip44
- cli - command line mode
- server - rpc server mode

## build
enter /clib
Expand Down
4 changes: 3 additions & 1 deletion clib/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
cmake-build-debug/
cmake-build-release/
cmake-build-release/
build/
*.a
4 changes: 0 additions & 4 deletions clib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,14 @@ endif()
file(GLOB_RECURSE DAGGER_SOURCES
xDagWallet/src/client/*.c
xDagWallet/src/client/utils/*.c
xDagWallet/src/dnet/*.c
xDagWallet/src/dus/*.c
xDagWallet/src/ldus/*.c
)


file(GLOB_RECURSE DAGGER_HEADERS
xDagWallet/src/client/*.h
xDagWallet/src/client/utils/*.h
xDagWallet/src/dnet/*.h
xDagWallet/src/dus/*.h
xDagWallet/src/ldus/*.h
)


Expand Down
Binary file removed clib/libxdag_runtime_Linux.a
Binary file not shown.
Binary file removed clib/libxdag_runtime_Windows.a
Binary file not shown.
67 changes: 0 additions & 67 deletions clib/xDagWallet/src/client/address.c

This file was deleted.

23 changes: 0 additions & 23 deletions clib/xDagWallet/src/client/address.h

This file was deleted.

Loading

0 comments on commit 4d4d74b

Please sign in to comment.