Skip to content
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

add missing swap events #368

Merged
merged 3 commits into from
Nov 17, 2024
Merged

add missing swap events #368

merged 3 commits into from
Nov 17, 2024

Conversation

smk762
Copy link
Contributor

@smk762 smk762 commented Nov 1, 2024

From KomodoPlatform/komodo-defi-framework#1908

Adds MakerPaymentSpentByWatcher and TakerPaymentRefundedByWatcher events.

Note: many events do not have an example, and exist with a placeholder like

TODO: Example TBA

@AndrewDelaney @ShantanuSharma9873 @cipig please seach your local swap json files (or a seed node) and post examples for the missing items below so we can complete all events for this PR

Also adds events from KomodoPlatform/komodo-defi-framework#2199 (comment)

Copy link

github-actions bot commented Nov 1, 2024

Preview for merge commit: 0c843c8, available on cloudflare at: https://0da8633e.komodo-docs.pages.dev/en/docs/

@smk762
Copy link
Contributor Author

smk762 commented Nov 3, 2024

Closes #13 & #351

Copy link

github-actions bot commented Nov 3, 2024

Preview for merge commit: 2c678a2, available on cloudflare at: https://44c154dd.komodo-docs.pages.dev/en/docs/

@cipig
Copy link
Member

cipig commented Nov 3, 2024

StartFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1046] !check_balance_for_taker_swap check_balance:75] Not enough KMD for swap: available 0.3496745089721220796661853315043096525096525096525096525096525096525096525096525096525096525096525097, required at least 0.6137602122212132901392050798062833976833976833976833976833976833976833976833976833976833976833976834, locked by swaps Some(BigDecimal(\"0.6135335210278779203338146684956903474903474903474903474903474903474903474903474903474903474903474903\"))"
            },
            "type" : "StartFailed"
         },
         "timestamp" : 1730115434533
      },

TakerFeeSendFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1267] Timeout 1730514773 > 1730514206"
            },
            "type" : "TakerFeeSendFailed"
         },
         "timestamp" : 1730514773992
      },
      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1286] mm2src\\coins\\utxo.rs:1804] utxo_common:4737] rpc_clients:2314] Rpc(ResponseParseError(JsonRpcError { client_info: \"coin: LBC-segwit\", request: JsonRpcRequest { jsonrpc: \"2.0\", id: \"389650\", method: \"blockchain.transaction.broadcast\", params: [String(\"0100000000010271d455f56c4cecb8384e2ee21ea83b2a4f87b13d1858815098d4145a0d821ce90100000000ffffffff9c760b35795b49f805cfed029cac4aee6f932a0180a2905c4180da784f83eb660200000000ffffffff024fffef02000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac9c6ec5e4210000001600141fde904f760f226e8e5afcfbf350dee0ab4377e80247304402204f816b3b3470a87b0a8421b147ac4f6ff05ab998019c7556875494287f0da1f702204d1f62b84f9ac10b20d881031940faf09f8deb1ea4768c087bdfdfc5b9fbe938012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf9402473044022013fe01d9a0f483f457876d5df53c1e6d54f06b5cfde4f0d6a8de853fdb4631d7022039fe6e6f56d2076cb7593cc47c90728d101b0e061dc37ea4152b36b8929eeeea012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf9404a30267\")] }, error: Response(electrum1.cipig.net:20067, Object({\"code\": Number(1), \"message\": String(\"the transaction was rejected by network rules.\\n\\nMissing inputs\\n[0100000000010271d455f56c4cecb8384e2ee21ea83b2a4f87b13d1858815098d4145a0d821ce90100000000ffffffff9c760b35795b49f805cfed029cac4aee6f932a0180a2905c4180da784f83eb660200000000ffffffff024fffef02000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac9c6ec5e4210000001600141fde904f760f226e8e5afcfbf350dee0ab4377e80247304402204f816b3b3470a87b0a8421b147ac4f6ff05ab998019c7556875494287f0da1f702204d1f62b84f9ac10b20d881031940faf09f8deb1ea4768c087bdfdfc5b9fbe938012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf9402473044022013fe01d9a0f483f457876d5df53c1e6d54f06b5cfde4f0d6a8de853fdb4631d7022039fe6e6f56d2076cb7593cc47c90728d101b0e061dc37ea4152b36b8929eeeea012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf9404a30267]\")})) }))"
            },
            "type" : "TakerFeeSendFailed"
         },
         "timestamp" : 1728226052824
      },

MakerPaymentValidateFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1366] Error waiting for 'maker-payment' data: lp_swap:411] Timeout (691 > 690)"
            },
            "type" : "MakerPaymentValidateFailed"
         },
         "timestamp" : 1730606274716
      },

TakerPaymentTransactionFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1557] mm2src/coins/utxo.rs:1854] utxo_common:960] EmptyUtxoSet { required: 179366458 }"
            },
            "type" : "TakerPaymentTransactionFailed"
         },
         "timestamp" : 1730546656928
      },
      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1561] mm2src\\coins\\utxo.rs:1804] utxo_common:4737] rpc_clients:2314] Rpc(ResponseParseError(JsonRpcError { client_info: \"coin: LBC-segwit\", request: JsonRpcRequest { jsonrpc: \"2.0\", id: \"342199\", method: \"blockchain.transaction.broadcast\", params: [String(\"01000000000102a61267a38f943e6c9672805d13aaf16c1b2c51097a23cd26f44a863d9769e8f30100000000ffffffff9c760b35795b49f805cfed029cac4aee6f932a0180a2905c4180da784f83eb660200000000ffffffff035cfee1c21e00000017a9144970b57257cf82ac33eb8d20369399c928235089870000000000000000166a14ac8eab9d229baa855a0ced1374840f1031020909f784043a030000001600141fde904f760f226e8e5afcfbf350dee0ab4377e8024730440220373524c71a2accabe458d66c29512fb5284468c0ee7e12348b98a5e88763927902207fcb97918f5cb7c7a0ed3f93e861e85c0f9e349f176cad39059d5f2dbaa875c0012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf940247304402203ae36cda354e8e9f6889a7da6bead2f2929b35256c84dab5e63e67c6d5ddcb4d02203205dda8049eebe911d5d2c746156e2013c79832a7b59a0a9eef0b1c38e310e7012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf946f400267\")] }, error: Response(electrum2.cipig.net:20067, Object({\"code\": Number(1), \"message\": String(\"the transaction was rejected by network rules.\\n\\ntoo-long-mempool-chain, too many unconfirmed ancestors [limit: 25] (code 64)\\n[01000000000102a61267a38f943e6c9672805d13aaf16c1b2c51097a23cd26f44a863d9769e8f30100000000ffffffff9c760b35795b49f805cfed029cac4aee6f932a0180a2905c4180da784f83eb660200000000ffffffff035cfee1c21e00000017a9144970b57257cf82ac33eb8d20369399c928235089870000000000000000166a14ac8eab9d229baa855a0ced1374840f1031020909f784043a030000001600141fde904f760f226e8e5afcfbf350dee0ab4377e8024730440220373524c71a2accabe458d66c29512fb5284468c0ee7e12348b98a5e88763927902207fcb97918f5cb7c7a0ed3f93e861e85c0f9e349f176cad39059d5f2dbaa875c0012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf940247304402203ae36cda354e8e9f6889a7da6bead2f2929b35256c84dab5e63e67c6d5ddcb4d02203205dda8049eebe911d5d2c746156e2013c79832a7b59a0a9eef0b1c38e310e7012102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf946f400267]\")})) }))"
            },
            "type" : "TakerPaymentTransactionFailed"
         },
         "timestamp" : 1728200816018
      },

TakerPaymentWaitConfirmFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1698] !taker_coin.wait_for_confirmations: rpc_clients:158] Waited too long until 1730187904 for transaction ce94a6369e32d88fc7ec6feb3dce61cf953cb8f5647615f95faae7660b758695 to be confirmed 2 times"
            },
            "type" : "TakerPaymentWaitConfirmFailed"
         },
         "timestamp" : 1730187907451
      },

TakerPaymentDataSendFailed
does not exist... is this new? never saw it...

TakerPaymentWaitForSpendFailed

      {
         "event" : {
            "data" : {
               "error" : "utxo_common:2961] Waited too long until 1730570284 for transaction Transaction { version: 4, n_time: None, overwintered: true, version_group_id: 2301567109, inputs: [TransactionInput { previous_output: OutPoint { hash: 995f9a823455708020289fc21a19f0c8219e144f6c718b528a28d5b8997f0ccb, index: 1 }, script_sig: 483045022100bc4fef170983cd4c6ac9d66258b81d747c82c4fccb752210dac0f768a3bbe665022062713c040d19146b1a4709509f78d0301f34e40b5ab725d3494dbaed8a813fb5012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: b37f5511b46a3119e240b259db4ac9420ea02b5c7e61cbb5db7c7adccd4ba721, index: 0 }, script_sig: 473044022056ebd3193241b851093a7e1372f63b423d33290c7358d3e20ae511435ba2153b02204fe3f7444200a36b28b004a3fa98310c453ba942d27ad00001489a115d467ecd012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 2019cb34a44f282e79d2a2cac9bb0a63fa89a83760ae5396b993b87fe203b29b, index: 0 }, script_sig: 4730440220290ae0974a2fc451a79a49640b15cc66e6abd34f244ae744f4072867d4979a43022078dcd0c373eb80a5af313daae5fc146b088b6ec364ce1a0be091d3a4ec498abb012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: eb13b2203f1feec79915874bdd5088a69a471dfa5bd54adf7669e3f5576f7152, index: 1 }, script_sig: 483045022100db5e4165da4cc1cbf9ff6de304a5488884e8dcfa277afe90ee51f2ba51296f7a022024a7994d1165293e1e5592b73f9dd5562a50370aa07bce1d46efc8dba35237e1012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: b1ee4fab5793e1e695734fd31fd809831577acc545ebabe5db43d0f13f50f93e, index: 0 }, script_sig: 4830450221008831f889f4aef6beac68887ec29f29cb6920a48f86088205ad5764c93a849a64022044e8e42f7cb109b4ccd2be8af065e3eb9aacf1b3e9848b56e1ac685f72a3465a012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 40415a35a9f2508a1de331afe06331824b8721a9ad1d91fdbee1fe5fdac1bf1a, index: 0 }, script_sig: 473044022056aca041e981b0ae6608810d8dc4a8bfdb8d8ba436590a8f385052880f8bbfd002200b7e53bb701c3b9d9ed3acb1256ba5187319d49e1e364e39652396ee5f84f6d4012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 8a4098f1b16ed925753a45246f992eeadef7d68f74d1490bc7c9973080bd0cc8, index: 0 }, script_sig: 483045022100b50c048fcc4663fd11abc5afc9c0b216cff717f7df76a5a5773431db6d09c3cb02204e88bdbdcecc4a33c6fc5550e6a22d7d386db6c00eca49539a9a33a546a70d01012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: f16b745ff33a7d2fadad081a4a72a63ee4547f14f5e316ee8a15ceff02f9d1e8, index: 0 }, script_sig: 483045022100a45fe2dd61c1e645a0193ea4a4aaf7edb422aa688bcf21072687a76bfee102d202201d70b1f274b06376dee61c3d139d2ba784920dd1a7e09195906ad125bafc95e3012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: b8ebd497a0ad4a661ce75521ed4f979956d74d83cbdeabf414f27d6d499bde70, index: 1 }, script_sig: 473044022056a5f060b4785a5681949b855e1d7c72b509ec056e47b5798d6f543eac09cdaa02200be45555420d2343601180bde635a79cf12d3c44ec376ef329c4c32109942a72012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 848ec1288a258ddff87da0469ea46cb6a35656e30204f7492cf2d4d7905ae7ce, index: 1 }, script_sig: 47304402202943434716e3af3ff7c9232ec3c28ecc1c7f9095283c5bb1923bdce3153073520220076bc18c4833f0076ebef21e4473112ba2f5081a00310e683207d9ff5211bf87012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 1cca91bc087c143a8b3d081176ce519d49f389f992f3ac5662d44db7bd10555b, index: 1 }, script_sig: 483045022100b2992bce7ab157b3117a79dab0600965406c41508079d156fe7b7337c65e608902205ce13afe9b291076f57c8443796c3e7582543cf260d078aa51173559cc820fd3012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: c72429e5f614a9d4b189ca2b82bbdeefea7d3fd3eeef24e7bda2940b9de7c1e1, index: 1 }, script_sig: 47304402204775441d9a37148137b8f718220e32d060742f2f6b21fa9e33305f396a518e1202207a814750ea4d960c9e6d105a3e59d4669ff62dcbf8790ea89eea50bc61063067012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: bd07a05e8d1566cc81e87f74a308f7382b4183a1eee2eb494cb752a5e71ea70d, index: 1 }, script_sig: 483045022100cce515b71823c661f0460e3699b2c28e2307673dee10dee2ceb3860d15ed752b02207706d7b3734367caebbf1b6fbd24276c3b60dfe6023f809f8d4620a0df5a0327012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 1c253d54a5b8e61123262e7aa9aff698dd13e569accb561343eb4311c2276289, index: 1 }, script_sig: 483045022100c1a520421d5821615e6f7e62268764e7b1492dbf41641f93bbf8a78b54d7a9be02201a9fcbe74dcb630a9c83ca31693548837a484e0e0b182190a8b2f8e17fdff0a8012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 050cfa0cf2c188b2e19128c85cff854ce55d3b78a7fee43123e17325e0c703a4, index: 1 }, script_sig: 47304402200ed63fc9d8894a4b8b95359bc7d4b1546c6ff21fab5d7cee9b503476e18cf70a0220711318d6dd08ed7b2164b6d84851a77191f14dc928382d8bc2a36d0efcb5cbcf012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: edec4f13d2dea3d2ccbc2fda759f16db5e07e86e99312aee2b1628323f68b682, index: 1 }, script_sig: 473044022051b1bc375f96d4c4dcb9c1e82ae2ec8031acc82d247b22180099208e212f606102206dae9ca8a6efeecf38c8f4227b086ff8709e4a6bb7c96a08881a061a2755e148012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 77105be3f9e66e306552a21aaed33535d4896123a8d8e7428256457b6418106d, index: 0 }, script_sig: 483045022100fe9375bfd7a1fec63093497e6feff0c12b92d45f27a22d9e22dcb3b1e9642b74022023be3275a8c8b35a585ad1b57038681225a2c8619f624207c1fdf09e713eb914012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: d8310f0fedd3ea620d15ac074c49ec85a6dbc464677e9f67fb7500b660737cfb, index: 0 }, script_sig: 48304502210099847bb02d3b16c5e8e1d002d045c930dc5e338045170d9e4b19764859e5a7a702204da305bce483c3f8e099a495894aa92cf8bf89abff1d228789575d8b75594a43012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 98c23f997ca9c5b5baa48cda6678750e6309515aee59c78f29d06fe07f445437, index: 0 }, script_sig: 483045022100d6903660651a849f15cfe5a300f442edfd7fa9b9f14d3f6a254e71b57a3815bf022062ccd59091e6eea75be5f13dc94ce6558628af032a648accc7762903cfe4e123012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 2f82957efd4b8aa5ecb809f3cde725b8a1bc3caf97394ebf41e46f88d69c0dbc, index: 1 }, script_sig: 483045022100ca0d6687235493e62f1cea2c2ea2a84a7efb5d5c22baa638f9cd023dad00547d02203b77f22df320c7bf1fd5b21f13c62deacb3cb8f2e35692d18bf38ab5ff41aeef012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 2d102f0f87aafccd3b46eb905a5ed5956bee4bb4c431abc3a111e87692f96cd9, index: 0 }, script_sig: 483045022100afe93f59d3632249937c2cbd8baad0a8b8fc8e47762da63daee34eb2467660a1022022c7dee4cae0caf5c537274e8a0e1b581bc0ab2bf0a6a88032391704caa47f48012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 12b659b1aa1d4e912b0700a508bee2c9d81fbafd4324ed3e393611f499140df6, index: 2 }, script_sig: 473044022064827e57831648074b4ac6ed82d2196a0d69ccb901f264a84aed8bbf7f1103270220179e0af88b42093ebb3a96bc4df8432732b3106d69ec9accc80dce3d507d06a3012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: fd9b02f4bf5d581e35a41ef5147219946a7d9b1b8b67bb16033c70661fb2229e, index: 1 }, script_sig: 4730440220054d26a2a717ec034047b5b6f482ca88cf34456314054307497cea9be8140451022007cfa5d6566bd6cb5be26c93fa53c87ab850f01139044acf722b8b261bb1b85b012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 5b09730a23d4a1d9192be3bdc0d1f472aa7380a2c3ecfd97c479e892df7e2be4, index: 1 }, script_sig: 473044022041616d6ad6fa72648818be3781430169dd4bb1a284a7f884badbe26dec78044b022005f15b301313aa75d8a51854041676abc86d96ef87c81393bdf4d22633153260012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 22dd17a87ba71979ab22c6cab1a6355672c8257723dea01f0570afbe04a27e3c, index: 0 }, script_sig: 4730440220149a3724ac3f8536a338bbd7032055e69e899afef47c3066a1c8475b1bcbbfec022033fab76eb9b00ec8300da0f726a0ea4d307c3856e315d7b01f3659c69bff6d37012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 29b4dc2d68c9ab7e4498180a37974278fea331bb760e8c612a49bd6bec834e9a, index: 1 }, script_sig: 483045022100cddf37b0e6e38d74bd9a05973768f89075307327aad03326dede1f241fddb89a02200cdc63ef918c6cfadea6924bdae0fc02c984e152b7c639989eb382e7e47c1f66012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 5942623a64933e8900f499df4725b8c872f2c040759eec3ef454bb170d526654, index: 1 }, script_sig: 47304402205a3d7343de2216783ba21c3851a235bc2514b7e3c69b0db2e37403dad32e108402207a80625279c10dbc884ccaadd946eacf593b8cf12c2feb1370171ed247f3dbe4012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: f6ba07e5fda137b8397ca98519bf339271c169350f1d07671cede7b64c52fd32, index: 0 }, script_sig: 483045022100908c39cf34945d9479b7b629c060d5586ea58c04fbdc213d95d9e1b0bc09fb3602207217542bdc560c14c0d25bef52e9fecbf4705b8880864f4c6583ab30e3a2514f012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 3cb6e27daa02860f43e41fecfd90e0c3c4f8ff38b27d2cb1a7bef64b5ce890dd, index: 0 }, script_sig: 483045022100df93c2c7b6f681f7370cf42d72446b9d19809c0a2b3b9f1311a0f687c8dc606f022037e33bea0d484106480b6fdb3ef63474e289087e1dbd8dffac4df33190e2ded2012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: a1ce2f2e115428db5df08bde6175010ce0fe15149d90fead73d95bb1b7dbb1fe, index: 1 }, script_sig: 473044022043dd6502fefdffdb5d1ea383c4d2c4a1be79bea8c5ada698282b06d9aaf6e00f0220378c65b0e4cd8dda560dbf0fe221a7a4e65e65b14d494950e86b2186778a7f15012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 57be1444813980d17ba967765ae9ed5644c15e6fc456cc2fdc7e136233199c93, index: 0 }, script_sig: 473044022077fda3eaaa1e3515960fa300d0350cd7e672812e6bec95cbc9df2d62a83f5af20220116a7a79a503d01096143e5402c85431acfe6a9127d4c8e4aa92657fa0ad388f012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 34ab301a9868f00f5ede8320759a580fef89e2e460bbf06378e4de4e65918dce, index: 1 }, script_sig: 473044022001b8034e2a609b63c443030d16c9b3b1ad03edb2fb35b92ecc9a6c9c4c3f413602205ec71f44299e52b7edd2cf0b86bc7a4598e8afcd3c939f5fc591158212480b45012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: d6d8b926603f821f7113f02d5a32d3924da71591871944ef97d3800d6497af74, index: 0 }, script_sig: 483045022100a24909389b3fae2df094cda99880d4ed4f8be0f821fe18ebaf64dcfad96291b50220382c1697281be42dd712391cd62c26b7a5f3248af3e9362db5c794eafc752cbc012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 54b0300e4e762df062097368e08d269603548ba6e1a85f2cf06ceb8fe11059af, index: 1 }, script_sig: 483045022100a3a998c816815b124417ed8584c8bc6ec3360f81c162e10faf419b3f9652f83602205c94a8740458479a1b08f73a574447534e0d2a68eb583a75ef66b24c5762b3fa012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 153c95e3711cf3d8d41b2066e4cf537c86531ce9d3b6df139e5c077a524c8fbe, index: 0 }, script_sig: 483045022100c48c01d24b48d4dfaebf17ac1f0c23d769d7a3f45a3ef98be92b43fca319895e022038041d26d8923c1b3b6422d7739d55ec1f6746a601d30b098b0aff0b273a00f0012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 10b4c51eed87d2dd2581a0c15ca1d18bc85c3a0360d32b1caed205c86a660fcb, index: 1 }, script_sig: 4730440220386798392de4e9b7dc22fe2499589834d768153bbd049befcaedc02ba57474670220710929c1b6192a35ebe0e8ecea60135bd3a63f4ef59bb8c0eceddf351ae12730012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 9697d0c687fa817b9c36af4d863192d874536bac6969c06955c19873332024d5, index: 0 }, script_sig: 4730440220297ab66d200fb1731140a7c863851221a79a4659099213d11ec583f91737c0fe02201cd4f556103e0b7b429062528b356ebd31acc342617dabb770fde58f9c275b5a012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 15d67c858507bf26049cb8f54cefadcca9fb3f8b11ab2533a59e0964db7d52d4, index: 1 }, script_sig: 48304502210087c24b61d1fd22c5e066f7572c4815865b316b3945e681921f9ae98cbfdd91b2022008b24f34e74dc2a6e0bb44641895ddda4e38f3bb151f429264b6879745038b9a012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: afe30eae7d426475d1b7affb6b244639e5b2a5af55822629751a479a6a5e376f, index: 1 }, script_sig: 47304402204543f5bb6b3c2fcfe47a5b32be4a3dbe2b3ec4c7c1e27e27e38a2f738288798c022009ba32e60e1cb23b8c5915b0947236f8516beb78a95ee16c67a5018808de99a5012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: f4ce097a0631da310adc103c407beb4448abca654b063b7dc6ad7fe1748f64d9, index: 1 }, script_sig: 47304402205cdac8f11a7431d7e41ab832e30c25f7998ff7ed6f068874152d1f637bdcd5db02200d6064a797f951322380979410eb2d542070397a3e8af85dbb5d47a8a234904c012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 527f50f42a0208c456cdef75683b8ef36cc179ade1b78609fc4afab32d3aa8fe, index: 1 }, script_sig: 483045022100fc2036e61dffbd115b7c3083edadb5bdf179969367413c5fda3aa64464783c6702206214775b4716eb47c5c51a26eb09875dff4e7908b224154eb3a52dd9d8720c5e012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 851b1efeb96226204f16b25e2a9766680f354707baef61fe794bb3c932390817, index: 0 }, script_sig: 47304402206af93dcd589faea3b3701d4db98c79a32daec3bd62302d5746ddb43e4dc4d69d022053a547475e55637b8e0c75bab573e12ff79ffd8ca2f4dfe805864018669ffae3012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 9125c21285c8158e795681858e48e32755f7b6e29effd562fb5347cfc1e925a0, index: 1 }, script_sig: 483045022100910db47b62c3123d06fc435baf483e8daf3f706de4a95b81cff760cd1bb1a960022035b08fe7bf8ddaab82af9128c17fcf815f1afaa59f9fb6ae144337df8ba7186c012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 5138f89e2fc502490b5d3857e8cc81cacb7ac6c6047a3228311fbd91583b5600, index: 1 }, script_sig: 483045022100f0c3d5804b19d88cba234d1d0aeff02771d7d87587f8c3dba98bb88dd6fccbda0220581b878548e4e84ab553a1239b93af02fd279e94af7e865e93b87fc3d3529867012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 0efb0d2a99b4ecddf324cb77c41d41863649d4f8e314e35586869956225464aa, index: 1 }, script_sig: 483045022100ddd387fd4d91053ae00b1af9e6fa3c762fcd4d28881fafb5747d0dbc6fa36854022003e71c3e3205d929a322533307845143a6f8e57c385b1e13470dddace7291376012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: b323e9f6773b029b3bb741b86ae8724a8288e890d6f5ce08b37c5762c73cc80a, index: 1 }, script_sig: 483045022100899ff3533e8857db398cb1e26e80230c5288943598366711d59b940b8d5730fe0220747e23785e03e496c11edf482f4e2509fc169caafa4af3be59c67b3c0b002032012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 8c982935afcc6e4ee540541b54a0898920b252863e2bb2addf302b8904f4cdd8, index: 1 }, script_sig: 473044022033d86be42486c9f1021e6311ab767e878edd39b1ebe18e98eca598fbb80dca6b0220225449d70ff8a3442ea2bacccbb946e12e3291ed17ef7058d35fc2c62675e7a8012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: e5395bd55dc3cba43e9360dcf07ef611e9c45270107ddfd83143a853cafeb7bd, index: 1 }, script_sig: 483045022100fb5e5e12f9d273ffe63a37452f4f00716ce20f8dd3039d0813e7d6a922f53dff02202f290d6b2555dc4e3f7d22bc47da847fcbf537988debaf713f968563f8803f61012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 0d10992cc9310e839fb281158b33312e284c2ec8341921dc3b868d2ab1d7d1aa, index: 0 }, script_sig: 483045022100a1b9e276838711aab3f3a73d408ffaa07444f8da1172cd72e03dad427cfbf05e022044340bd3e5f7e5278d18869c10dc8d6dc50f6b4dc8beb3c751eca5e5447a2496012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 6df719ab4082d2d713af9c8b7cd0db6e4a81fa7750805cd1db2f6c7156545641, index: 1 }, script_sig: 483045022100f15c9d892f3e2fc1e7f5a2892d14e155c739b82d497c6dfade1246dc885c077d022070424516e2616f78b5a2e6f9fd352731ebf1dde58a156e03ca19da1212c790c5012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }, TransactionInput { previous_output: OutPoint { hash: 68b4cceaae7edccd7a097713f63344d36ab0aaa962883773d5193375b9235d13, index: 1 }, script_sig: 483045022100a433a6ed9204f327b6cc640df2bb10a0b0c048dffe8edabe857403e50470252202203e1ddbb6ca81e8436ac100284306c5529f87f2830c7b97604c39f10eec610a8e012103dfc0392064af0be9a9019b17b3960d37e35872372ca64c8c63c3b3fdd6c017cb, sequence: 4294967295, script_witness: [] }], outputs: [TransactionOutput { value: 378011018892, script_pubkey: a91447c202f68ab926a761bf74fd68c4fb8d3e1d763087 }, TransactionOutput { value: 0, script_pubkey: 6a146c141f5e1bdee6f8c64aba0c7b91c359b3be8d38 }, TransactionOutput { value: 48302426, script_pubkey: 76a914ec73fcb5923e5be096d02b483171761fbba00c2388ac }], lock_time: 1730540877, expiry_height: 0, shielded_spends: [], shielded_outputs: [], join_splits: [], value_balance: 0, join_split_pubkey: 0000000000000000000000000000000000000000000000000000000000000000, join_split_sig: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, binding_sig: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, zcash: true, posv: false, str_d_zeel: None, tx_hash_algo: DSHA256 } 0 to be spent "
            },
            "type" : "TakerPaymentWaitForSpendFailed"
         },
         "timestamp" : 1730570286779
      },
      {
         "event" : {
            "data" : {
               "error" : "eth:2395] Waited too long until 1729886781 for transaction SignedTransaction { transaction: Legacy(UnverifiedLegacyTransaction { unsigned: LegacyTransaction { nonce: 6871, gas_price: 62691837285, gas: 110000, action: Call(0x9130b257d37a52e52f21054c4da3450c72f595ce), value: 0, data: [155, 65, 91, 42, 232, 231, 214, 20, 244, 178, 194, 98, 57, 192, 117, 97, 50, 127, 109, 128, 96, 108, 172, 130, 117, 119, 150, 150, 174, 168, 150, 40, 64, 75, 223, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 148, 113, 14, 108, 80, 35, 138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 229, 65, 122, 245, 100, 228, 191, 218, 28, 72, 54, 66, 219, 114, 0, 120, 113, 57, 120, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 78, 98, 59, 21, 11, 132, 125, 165, 159, 6, 79, 124, 127, 204, 159, 120, 125, 174, 34, 41, 179, 71, 76, 14, 155, 248, 205, 218, 252, 248, 56, 229, 3, 36, 11, 67, 78, 186, 187, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 27, 250, 61] }, network_v: 309, r: 30960766983692737072029238729932661483589158070926724857504957694904101131132, s: 29795424864246499096275397297950973170778379433397726176049054179464616248819, hash: 0x4bb30ae9ad95ca9d767b49f8a07421a75b53504dd3ec10b55f3770c528eef02a }), sender: 0x15c577f4b9fbe66735a9bff9b0b5d3ea2854bfaa, public: Some(0x3c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f2890c7e83dfe4a34a21b636d8dc0074f619e962da35d4bc60d1fe88c956cafaa09e) } to be spent "
            },
            "type" : "TakerPaymentWaitForSpendFailed"
         },
         "timestamp" : 1729886785829
      },

TakerPaymentWaitRefundStarted

      {
         "event" : {
            "data" : {
               "wait_until" : 1695668176
            },
            "type" : "TakerPaymentWaitRefundStarted"
         },
         "timestamp" : 1695664482303
      },

TakerPaymentRefundStarted

      {
         "event" : {
            "type" : "TakerPaymentRefundStarted"
         },
         "timestamp" : 1695664482305
      },

TakerPaymentRefundedByWatcher

      {
         "event" : {
            "data" : {
               "tx_hash" : "f7c0bf10cee27c39bf84e77de88bbe734fe28487cc4cd8fe567082abefc8f6cd",
               "tx_hex" : "0400008085202f89012308d7e1f531e2695602d7a180b472d20f63930662bf5ea33c23c3637b0b564f00000000b64730440220294ddc7b5eedee7697b28e21a01bbff027cfb2d569e8902653df52b1b549a85702207a4efe8fbbe8a08b0e8ecdb02eeb0f54bea268feae3cb4a2e524911be917f0f701514c6b6304251fa964b17521023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ac6782012088a914e8eeeea9c6e8988f1ace7bb5b0222efd9fc9d2ed882103081f37ad0ab55bcbd8e2f45e6a364ebf88f727f80c14e7a4f083e9d6555afee7ac68feffffff016aa93203000000001976a91484c74592ed8ac05340906784d277ca4d4e0af08e88ac9620a964000000000000000000000000000000"
            },
            "type" : "TakerPaymentRefundedByWatcher"
         },
         "timestamp" : 1690992836496
      },

TakerPaymentRefundFailed

      {
         "event" : {
            "data" : {
               "error" : "taker_swap:1918] \"mm2src/coins/utxo/utxo_common.rs:1907] rpc_clients:2314] ResponseParseError(JsonRpcError { client_info: \\\"coin: ZEC\\\", request: JsonRpcRequest { jsonrpc: \\\"2.0\\\", id: \\\"2572\\\", method: \\\"blockchain.transaction.broadcast\\\", params: [String(\\\"0400008085202f8901274b68c78f9ab689f6efbdc1678bb3a3cb2f2e6dd685fe5bd10bee660a28de4400000000b647304402201c4176381ef6375a0e12a54d22f317613ce7a41ac61f963f7adce54a9247e0c30220292c37ff88742bc42317539f4c2a903424accd55a6d0c5c9499da1344eb8d39a01514c6b63043b45fa66b17521023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ac6782012088a914eab6c44aa1fb5607f3a115644fa3d2892905119c882102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf94ac68feffffff01e84e2300000000001976a91484c74592ed8ac05340906784d277ca4d4e0af08e88ac6f45fa66000000000000000000000000000000\\\")] }, error: Response(electrum1.cipig.net:20058, Object({\\\"code\\\": Number(1), \\\"message\\\": String(\\\"the transaction was rejected by network rules.\\\\n\\\\nMissing inputs\\\\n[0400008085202f8901274b68c78f9ab689f6efbdc1678bb3a3cb2f2e6dd685fe5bd10bee660a28de4400000000b647304402201c4176381ef6375a0e12a54d22f317613ce7a41ac61f963f7adce54a9247e0c30220292c37ff88742bc42317539f4c2a903424accd55a6d0c5c9499da1344eb8d39a01514c6b63043b45fa66b17521023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ac6782012088a914eab6c44aa1fb5607f3a115644fa3d2892905119c882102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf94ac68feffffff01e84e2300000000001976a91484c74592ed8ac05340906784d277ca4d4e0af08e88ac6f45fa66000000000000000000000000000000]\\\")})) })\""
            },
            "type" : "TakerPaymentRefundFailed"
         },
         "timestamp" : 1727678432853
      },

TakerPaymentRefunded

      {
         "event" : {
            "data" : {
               "tx_hash" : "6942bca7b871e196cda1f8eb1da9b0678b3f2baa45f9023bc116c2dae085a8a8",
               "tx_hex" : "01000000e9d2116501040b1bd67c8760eadcfe70c6bf41b29c1c869bbc59cbfdfdd5b99b5ca89a18d300000000b647304402205ace6d71d20c98d0cb503988b2a93e337ebfd37347b9bd576c9b960eb79c05e60220459207fcb445dabd5e6e31b8dbc9ef59be2ddba9c1860a539d84d53fcbcb0c7d01514c6b63045cc91165b17521023c5ba1d7ef6fa015eb33defb3aba2a961898a51bbb7ff30344d07ba75ad3f289ac6782012088a9144a68a616ba60b001e3d2493aabc4a7885769760f882102f70d90df545d767a53daa25e07875b4b588c476cba465a28dcafc4b6b792cf94ac68feffffff0143392900000000001976a91484c74592ed8ac05340906784d277ca4d4e0af08e88ac56ca1165"
            },
            "type" : "TakerPaymentRefunded"
         },
         "timestamp" : 1695666921166
      },

TakerPaymentRefundFinished

      {
         "event" : {
            "type" : "TakerPaymentRefundFinished"
         },
         "timestamp" : 1695666921167
      },

Copy link

github-actions bot commented Nov 4, 2024

Preview for merge commit: 2c678a2, available on cloudflare at: https://c61a1ac8.komodo-docs.pages.dev/en/docs/

@smk762 smk762 requested a review from laruh November 4, 2024 13:49
@smk762 smk762 changed the title add missing swap watcher events add missing swap events Nov 4, 2024
@smk762 smk762 requested review from dimxy and removed request for dimxy November 4, 2024 13:55
Copy link

github-actions bot commented Nov 4, 2024

Preview for merge commit: abdf549, available on cloudflare at: https://6711896c.komodo-docs.pages.dev/en/docs/

1 similar comment
Copy link

github-actions bot commented Nov 4, 2024

Preview for merge commit: abdf549, available on cloudflare at: https://6711896c.komodo-docs.pages.dev/en/docs/

@gcharang gcharang merged commit b741054 into dev Nov 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting merge P1 Important task which needs to be completed soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants