-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(slp): add slp tokens & arrr support #1176
Conversation
- add testnet bch + update translation
- add slp - add usdf
…en verifying an address
explorer link from tBCH not working (redirects) usdf explorer link ok ✔️ addressbook validation fails without withdraw ok ✔️ On one of my accounts, it wont let me disable USDF or tBCH (another account is ok). no logs to indicate reason, but I did catch this on an assets config reset |
The slptest prefix is expected for slp tokens For the qml warning i believe they are present on dev For the explorer the usdf explorer should work the tbch doesn't need to be tested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I will merge it once tx history and main net will be added and tested, i let it in standby meanwhile this time |
it can be merged to dev only after slp related changes will be propagated to mm2.1 branch |
SBCH is not present in this pr, as mentioned by @artemii235 it uses a specific version of coins file, all the last protocols are not present here. |
tBCH still shows no history, though USDF does.
|
Still don't see tBCH history via GUI here. While testing in CLI with curl --url "http://127.0.0.1:7783" --data '{
"userpass":"'$userpass'",
"method":"my_tx_history",
"mmrpc":"2.0",
"params": {
"coin": "tBCH",
"limit": 2,
"paging_options": {
"PageNumber": 1
}
}
}' Response: {
"mmrpc": "2.0",
"result": {
"coin": "tBCH",
"current_block": 1483378,
"transactions": [{
"tx_hex": "010000000185946ef0e7a20ffeb20df49b7a3af479b3e342a53c9ec4c277b9aaef4d68482a020000006b483045022100dfd11726ee33c1a0b722ed684b3017809857ea630d37ea2e964701d8b36b8272022027143ad239b20bedd596794765ffefa3325d0451f3b3e2143307ab2c26b1803b41210337088855be311c7d961649b0b24e5498858da3dc3c6bcebc8039ff32555cdb87ffffffff0240420f00000000001976a914d346067e3c3c3964c395fee208594790e29ede5d88ac573e3700000000001976a91454aa8893ec5d8ee65cc332089c919416cca2604988ac2d7ce661",
"tx_hash": "e42f3aad25443160b7aa22c61644419aef7993ef644c6c4133174970b3db9268",
"from": ["bchtest:qp224zyna3wcaejucveq38y3jstvegnqfyc0gttwtp"],
"to": ["bchtest:qp224zyna3wcaejucveq38y3jstvegnqfyc0gttwtp", "bchtest:qrf5vpn78s7rjexrjhlwyzzeg7gw98k7t5y57jt4vw"],
"total_amount": "0.04620665",
"spent_by_me": "0",
"received_by_me": "0.01",
"my_balance_change": "0.01",
"block_height": 0,
"timestamp": 0,
"fee_details": {
"type": "Utxo",
"coin": "tBCH",
"amount": "0.00000226"
},
"coin": "tBCH",
"internal_id": "e42f3aad25443160b7aa22c61644419aef7993ef644c6c4133174970b3db9268",
"transaction_type": "StandardTransfer",
"confirmations": 0
}],
"sync_status": {
"state": "Finished"
},
"limit": 2,
"skipped": 0,
"total": 1,
"total_pages": 1,
"paging_options": {
"PageNumber": 1
}
},
"id": null
} CLI testing enabled I manually replaced same @Milerius issue is not my connection, and not related to mm2 or coins file - seems to be within the GUI. Testing in CLI using userpass from active GUI session also returned expected history response. |
Issue might be due to https://github.com/KomodoPlatform/atomicDEX-Desktop/blob/113388b41b46d260a9fe77b6d3f3c0affd1470f0/src/core/atomicdex/api/mm2/rpc.electrum.cpp#L37-L41 (sets SLP type coins to |
Right click > "disable tBCH" All of the above fail to disable tBCH in the GUI. Also unable to disable USDF in GUI |
Electrum legacy method is not used for tBCH and BCH anymore, I've removed the dead code, and I confirm that I can disable all those coins as expected. |
I don't see txhistory for tBCH as well on my side: @Milerius could you please re-check? |
I was able to see the tx history probably due to the local database of previous history - note that I had to hardcode the check for tBCH or BCH in the backend code to my_history v2 for the 2 following UTXO coins: We should probably support multi-tags in the future in order to avoid such a hardcoded check, 2 ways to implement it:
For example such a configuration with this approach: "tBCH": {
"coin": "tBCH",
"active": false,
"is_testnet": true,
"coingecko_id": "test-coin",
"coinpaprika_id": "test-coin",
"currently_enabled": false,
"electrum": [
{
"url": "tbch.loping.net:60002",
"protocol": "SSL"
},
{
"url": "electroncash.de:50004",
"protocol": "SSL"
},
{
"url": "testnet.bitcoincash.network:60002",
"protocol": "SSL"
}
],
"explorer_url": [
"https://explorer.bitcoin.com/tbch/"
],
"bchd_urls": [
"https://bchd-testnet.greyh.at:18335"
],
"allow_slp_unsafe_conf": false,
"type": "UTXO",
"child_type": "SLP",
"name": "Bitcoin Cash (Testnet)"
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tBCH now returning history and disabling as expected. tBCH/USDF swaps completed without issue. If ARRR stuff will be in a different PR, I'm ready to approve this once KomodoPlatform/komodo-defi-framework#1184 is merged and app mm2 updated.
artifacts will pass again once we update urls after mm2.1 pr merge. |
…ktop into slp_integration
to test:
(please reset your cfg before)
to test ARRR:
./komodod -addnode=88.99.212.81 -ac_private=1 -ac_supply=0 -ac_name=PIRATE -ac_reward=25600000000 -ac_halving=77777 -addnode=158.69.255.49 -daemon