-
Notifications
You must be signed in to change notification settings - Fork 207
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
ARRR integration #1188
Comments
Updates on the integration status: Activation and withdraw are implemented using 2.0 RPC protocol https://developers.atomicdex.io/basic-docs/atomicdex-api-20-dev/#atomicdex-api-rpc-protocol-v2-0-dev. It might be required to integrate it's generic structure first.
{
"coin":"ZOMBIE",
"asset":"ZOMBIE",
"txversion":4,
"overwintered":1,
"mm2":1,
"protocol":{
"type":"ZHTLC",
"protocol_data":{
"consensus_params":{
"overwinter_activation_height":0,
"sapling_activation_height":1,
"blossom_activation_height":null,
"heartwood_activation_height":null,
"canopy_activation_height":null,
"coin_type":133,
"hrp_sapling_extended_spending_key":"secret-extended-key-main",
"hrp_sapling_extended_full_viewing_key":"zxviews",
"hrp_sapling_payment_address":"zs",
"b58_pubkey_address_prefix":[
28,
184
],
"b58_script_address_prefix":[
28,
189
]
}
}
},
"required_confirmations":1
} For PIRATE, it should be the same, except
{
"mmrpc":"2.0",
"result":{
"status":"InProgress",
"details":"ActivatingCoin"
},
"id":null
} {
"mmrpc":"2.0",
"result":{
"status":"InProgress",
"details":"Scanning"
},
"id":null
} {
"mmrpc":"2.0",
"result":{
"status":"Ready",
"details":{
"result":{
"current_block":90728,
"wallet_balance":{
"wallet_type":"Iguana",
"address":"zs1g6z7dcfp5wg085fuzqlauf8d85ct4hke7xmwxe0djnq48909yfsj66hzj0fjgfgzynddud8n04g",
"balance":{
"spendable":"1",
"unspendable":"0"
}
}
}
}
},
"id":null
} |
ZOMBIE [{"url":"zombie.sirseven.me:10033"}] ZOMBIE ["http://zombie.sirseven.me:443"] PIRATE [{"url":"pirate.sirseven.me:10032"}] PIRATE ["http://pirate.sirseven.me:443"] cc @smk762 @tonymorony @SylEze |
Error example: {
"mmrpc":"2.0",
"result":{
"status":"Ready",
"details":{
"error":"Error on platform coin ZOMBIE creation: ZCashParamsNotFound",
"error_path":"lib.z_coin_activation.z_coin",
"error_trace":"lib:93] z_coin_activation:171] z_coin:685]",
"error_type":"CoinCreationError",
"error_data":{
"ticker":"ZOMBIE",
"error":"ZCashParamsNotFound"
}
}
},
"id":null
} This enum contains all possible error variants: https://github.com/KomodoPlatform/atomicDEX-API/blob/28749e38e22137c64a025d348bae22db4e33d3c3/mm2src/coins_activation/src/standalone_coin/init_standalone_coin_error.rs#L16 |
UPD MM2 binaries are available for ZOMBIE/ARRR light mode here: http://195.201.0.6/arrr-light-mode-swap/. Please note that native doesn't work there anymore, as it requires some refactoring 🙂 I have also created a new branch for this with a more reasonable name: https://github.com/KomodoPlatform/atomicDEX-API/tree/arrr-light-mode-swap (updated in the initial message). cc @tonymorony @SylEze @smk762 |
@artemii235 can we please include the coin in e.g. {
"mmrpc":"2.0",
"result": {
"status": "Ready",
"details": {
"result":{
"coin": "COIN_TICKER",
"current_block": 102320,
"wallet_balance": {
"wallet_type": "Iguana",
"address": "ADDRESS",
"balance": {
"spendable": "BALANCE",
"unspendable":"0"
}
}
}
}
},
"id":null
} |
@smk762 Best orders V2 request structure: https://github.com/KomodoPlatform/atomicDEX-API/blob/4366141c8a7a5d6d3abac87df8827f7cae53d11c/mm2src/mm2_test_helpers/src/for_tests.rs#L1253 Orderbook V2 request https://github.com/KomodoPlatform/atomicDEX-API/blob/4366141c8a7a5d6d3abac87df8827f7cae53d11c/mm2src/mm2_test_helpers/src/for_tests.rs#L1236 |
@smk762 I've refactored {"mmrpc":"2.0","result":{"status":"InProgress","details":"ActivatingCoin"},"id":null} ... {"mmrpc":"2.0","result":{"status":"InProgress","details":{"UpdatingBlocksCache":{"current_scanned_block":2911,"latest_block":123147}}},"id":null} ... {"mmrpc":"2.0","result":{"status":"InProgress","details":{"UpdatingBlocksCache":{"current_scanned_block":38935,"latest_block":123147}}},"id":null} ... {"mmrpc":"2.0","result":{"status":"InProgress","details":"BuildingWalletDb"},"id":null} ... {"mmrpc":"2.0","result":{"status":"Ready","details":{"result":{"ticker":"ZOMBIE","current_block":123147,"wallet_balance":{"wallet_type":"Iguana","address":"zs1g6z7dcfp5wg085fuzqlauf8d85ct4hke7xmwxe0djnq48909yfsj66hzj0fjgfgzynddud8n04g","balance":{"spendable":"1","unspendable":"0"}}}}},"id":null} Please note that |
@smk762 KomodoPlatform/komodo-defi-framework#1302 is merged, you can use dev branch :) The binaries will be uploaded by CI soon. |
@smk762 tx history is ready, the PR is on the review, but the API won't likely be changed. You can start implementation using builds from http://195.201.0.6/arrr-tx-history-and-native-mode/. Please note that I had to add a separate Response structure: cc @tonymorony |
@smk762 Tx history PR is merged to dev. |
I think this will be useful during testing: https://zcash.readthedocs.io/en/latest/rtd_pages/ux_wallet_checklist.html. Official Zcash recommendations on wallet UX 🙂 cc @tonymorony @smk762 |
It works in native mode only now.
curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"enable\",\"coin\":\"ARRR\"}"
Please consider this as very early alpha/PoC. It requires the checklist from KomodoPlatform/komodo-defi-framework#927 to be implemented to avoid linking different swaps between each other, etc.
Activation time is about 20 seconds. Withdraw can take minutes depending on the transaction size.
The text was updated successfully, but these errors were encountered: