coblox / bobtimus

an autobot that automatically handles swaps as Bob
Apache License 2.0
1 stars 1 forks source link

Implement fund, redeem actions #4

Closed D4nte closed 5 years ago

D4nte commented 5 years ago

Create some siren compliant comit_node http api response prototypes that contains fund, deploy, ~redeem~, refund action for all supported ledgers and assets (bitcoin, ether, erc20).

Given the response from GET /swaps on the comit_node: if a ~refund action is present and it is possible to trigger it, do it~, else, if a ~deploy~, fund or redeem action is available, trigger it.

trigger it = fetch the details of the action then proceed to execute it on the ledger.

Note: use the ledger wallets created with #3 and #6.

Refund tracked with #20 Deploy & ERC20 tracked with #21

Edit: split refund and erc20 in other issues