anAngel Wallet
A BlockChain Wallet microservice for the AnAngel Platform
Links
Docker repository
Github repository
Default local swagger: http://localhost:8080/api/swagger
debugging database
H2 console for debug: http://localhost:8080/h2-console
jdbc url: jdbc:h2:file:./data/test
user: sa
pass: password
Usage
To run the image:
docker run -d -p 8080:8080 --name anangel dreamfactoryhr/anangel:latest
-p 8080:8080 is an optional parameter, you can change this to fit you needs, see below on how to configure...
--name anangel is also optional, this is the name of the docker container that will run the image
Configuration
Service Networking
You can choose the networking mode of the docker image (service):
-p 8080:8080 -> exposes the docker port 8080 (default for the service) and maps it to 8080 of the host
--network=host -> uses host networking, but you need to remove the port parameter -p
-e "--server.port=8083" -> changes the default server port to another one (8083 in this case), useful when using host networking
Changelog
0.9.12
0.9.11
- changed chainId to target Mumbai Network
0.9.10
- added the "toAddress" param in
spend methods on contract and tx controller
- changed network to polygon mumbai (rinkeby is deprecated)
- users will need to reset their current data by cleaning up previous docker volumes
0.9.9
- added debug logging for web3j
- added tokenAmount to transaction models, bind to anAngelTokens in txView
- correct to address in transactions, not contract address
- updated web3j library to fix NPE messages - add those to responses
0.9.8
- added getWalletById endpoint
0.9.7
- added txType, epochSecondsFrom and epochSecondsTo to listTransactions endpoint
- changed optimal amount of money for balance check (0,1 ETH)
- updated web3j library and added EIP1559 gas provider with optimal gasPriorityFee and gasFee values
- updated sql queries
0.9.6
- added list pending tx endpoint
- changed param name to pendingId
0.9.5
- add admin wallet endpoint
0.9.4
0.9.3
- added pending transaction mechanism (all txSend api endpoints can have status=pending and pendingId)
- added view pending tx by id (txView api)
- retry mechanism for 1 hour, every 15 seconds (when a new block is made)
0.9.2
- url generator, added blockchainUrl to transaction views and wallet views
0.9.1
- corrected transaction queries with custom sql
0.9.0
- added infura authentication (force auth on next deploy)
- added storage layer with h2 database
- connected all block methods to endpoint
- added money retry
0.8.2
- added blockchain integration, account creation, contract usage
- enabled only: "Wallet create", "Wallet view" and "Send Tx Generate" endpoints, until storage layer is implemented
0.8.1
- renamed entityId to walletId
- changed walletId type to String
0.8.0
- initial release
- mocked request and response models
- 3 apis (wallet, transaction view and transaction send)