Skip to content

Commit cb6bc55

Browse files
committed
add extra taker events
1 parent fb7f017 commit cb6bc55

File tree

4 files changed

+167
-37
lines changed

4 files changed

+167
-37
lines changed

filepathSlugs.json

+4
Original file line numberDiff line numberDiff line change
@@ -2148,8 +2148,12 @@
21482148
"taker-payment-wait-for-spend-failed",
21492149
"maker-payment-spend-failed",
21502150
"maker-payment-spent",
2151+
"maker-payment-spend-confirmed",
2152+
"maker-payment-spend-confirm-failed",
2153+
"maker-payment-spent-by-watcher",
21512154
"taker-payment-wait-refund-started",
21522155
"taker-payment-refund-started",
2156+
"taker-payment-refunded-by-watcher",
21532157
"taker-payment-refund-failed",
21542158
"taker-payment-refunded",
21552159
"taker-payment-refund-finished",

src/pages/komodo-defi-framework/api/common_structures/swaps/maker_events/index.mdx

-2
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ export const description = "A description of events and outcomes for each step o
33

44
# Maker Swap Events
55

6-
76
The atomic swap process goes through a series of steps to perform and confirm transactions, then release funds accordingly. If a swap fails, the taker payment will be returned to the taker's address (minus network transaction fees). Sometimes failed swaps were due to a taker or maker going offline in the middle of a swap, so `Swap Watcher` seednodes were created to process certain events on behalf of the maker/taker.
87

98
Swap watchers act to complete a swap or refund if one or both sides go offline for too long. This is done in a non-custodial manner, and funds are still governed by HTLC which can only be released to either the maker or the taker's address, and only after specific conditions are met, such as completion on the side that is online and/or a timeout.
109

1110
Takers send all the necessary information to watch the swap on taker/maker chains together with two signed transactions to watchers: one to spend the maker payment (maker payment spend) and the other to refund the taker payment (taker payment refund). If the maker proceeds with the swap and spends the taker payment (and therefore exposes the secret), and the taker doesn't respond for a duration, the watcher sends the maker payment spend transaction to the chain on behalf of the taker (after appending the secret to the redeem script). If the taker sends the taker payment but the maker doesn't spend it, and the taker doesn't send the refund transaction for a duration, then the watchers complete the process by sending the taker payment refund transaction to the chain.
1211

13-
1412
## Maker Success Events
1513

1614
Click on the Events below to view thier structure:

src/pages/komodo-defi-framework/api/common_structures/swaps/taker_events/index.mdx

+162-35
Large diffs are not rendered by default.

src/pages/komodo-defi-framework/api/index.mdx

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods:
5555
| [get\_relay\_mesh](/komodo-defi-framework/api/legacy/get_relay_mesh/#get-relay-mesh) | | |
5656
| | [get\_staking\_infos](/komodo-defi-framework/api/v20/get_staking_infos/#get-staking-infos) | |
5757
| [get\_trade\_fee](/komodo-defi-framework/api/legacy/get_trade_fee/#get-trade-fee) | | |
58+
| | [get\_wallet\_names](/komodo-defi-framework/api/v20/get_wallet_names/#get-wallet-names) | |
5859
| [import\_swaps](/komodo-defi-framework/api/legacy/import_swaps/#import-swaps) | | |
5960
| [kmd\_rewards\_info](/komodo-defi-framework/api/legacy/kmd_rewards_info/#kmd-rewards-info) | | |
6061
| | | [lightning::nodes::add\_trusted\_node](/komodo-defi-framework/api/v20-dev/lightning/nodes/#add-trusted-node) |

0 commit comments

Comments
 (0)