|
| 1 | +{ |
| 2 | + "metadata": { |
| 3 | + "args": [ |
| 4 | + "/home/user/bin/loop", |
| 5 | + "instantout", |
| 6 | + "--network", |
| 7 | + "regtest" |
| 8 | + ], |
| 9 | + "env": { |
| 10 | + "HOME": "/home/user" |
| 11 | + }, |
| 12 | + "version": "0.31.7-beta commit=v0.31.7-beta-28-g6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845 commit_hash=6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845", |
| 13 | + "duration": 1574538838 |
| 14 | + }, |
| 15 | + "events": [ |
| 16 | + { |
| 17 | + "time_ms": 0, |
| 18 | + "kind": "stdin", |
| 19 | + "data": { |
| 20 | + "text": "ALL\ny\n" |
| 21 | + } |
| 22 | + }, |
| 23 | + { |
| 24 | + "time_ms": 2, |
| 25 | + "kind": "grpc", |
| 26 | + "data": { |
| 27 | + "method": "/looprpc.SwapClient/ListReservations", |
| 28 | + "event": "request", |
| 29 | + "message_type": "looprpc.ListReservationsRequest", |
| 30 | + "payload": {} |
| 31 | + } |
| 32 | + }, |
| 33 | + { |
| 34 | + "time_ms": 152, |
| 35 | + "kind": "grpc", |
| 36 | + "data": { |
| 37 | + "method": "/looprpc.SwapClient/ListReservations", |
| 38 | + "event": "response", |
| 39 | + "message_type": "looprpc.ListReservationsResponse", |
| 40 | + "payload": { |
| 41 | + "reservations": [ |
| 42 | + { |
| 43 | + "reservation_id": "s/RD6Lj/eXdmtFCtd/6AvrJQrP14h1YrblyZZMWITYc=", |
| 44 | + "state": "Confirmed", |
| 45 | + "amount": "800000", |
| 46 | + "tx_id": "8b3b5e235ad24be42bc3802c6694566964c394df247b4ae1f2f4fd785e5acd17", |
| 47 | + "vout": 0, |
| 48 | + "expiry": 1619 |
| 49 | + }, |
| 50 | + { |
| 51 | + "reservation_id": "Wl+CTsY+V2zUvkK5bs9WIttkvKLrKM8A1kpZ5VZ/MHs=", |
| 52 | + "state": "Confirmed", |
| 53 | + "amount": "800000", |
| 54 | + "tx_id": "beb447976c6c1a93fdadee41280b912e62b305c7c30815dc172d58732b6c3836", |
| 55 | + "vout": 0, |
| 56 | + "expiry": 1623 |
| 57 | + }, |
| 58 | + { |
| 59 | + "reservation_id": "Mu65fbhayEtRzougKLBnoeRN8f+tEM1+O9QuNvUIfbI=", |
| 60 | + "state": "Confirmed", |
| 61 | + "amount": "800000", |
| 62 | + "tx_id": "5f898ca1b3852c62889f1113e07c73d0a3d721fd98d0a5433c6b7122cc706952", |
| 63 | + "vout": 0, |
| 64 | + "expiry": 1626 |
| 65 | + } |
| 66 | + ] |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + { |
| 71 | + "time_ms": 152, |
| 72 | + "kind": "stdout", |
| 73 | + "data": { |
| 74 | + "text": "Available reservations: \n\nReservation 1: shortid b3f443, amt 800000, expiry height 1619 \nReservation 2: shortid 5a5f82, amt 800000, expiry height 1623 \nReservation 3: shortid 32eeb9, amt 800000, expiry height 1626 \n\nMax amount to instant out: 2400000\n\nSelect reservations for instantout (e.g. '1,2,3')\n" |
| 75 | + } |
| 76 | + }, |
| 77 | + { |
| 78 | + "time_ms": 152, |
| 79 | + "kind": "stdout", |
| 80 | + "data": { |
| 81 | + "text": "Type 'ALL' to use all available reservations.\n" |
| 82 | + } |
| 83 | + }, |
| 84 | + { |
| 85 | + "time_ms": 152, |
| 86 | + "kind": "grpc", |
| 87 | + "data": { |
| 88 | + "method": "/looprpc.SwapClient/InstantOutQuote", |
| 89 | + "event": "request", |
| 90 | + "message_type": "looprpc.InstantOutQuoteRequest", |
| 91 | + "payload": { |
| 92 | + "amt": "2400000", |
| 93 | + "num_reservations": 0, |
| 94 | + "reservation_ids": [ |
| 95 | + "s/RD6Lj/eXdmtFCtd/6AvrJQrP14h1YrblyZZMWITYc=", |
| 96 | + "Wl+CTsY+V2zUvkK5bs9WIttkvKLrKM8A1kpZ5VZ/MHs=", |
| 97 | + "Mu65fbhayEtRzougKLBnoeRN8f+tEM1+O9QuNvUIfbI=" |
| 98 | + ] |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + { |
| 103 | + "time_ms": 177, |
| 104 | + "kind": "grpc", |
| 105 | + "data": { |
| 106 | + "method": "/looprpc.SwapClient/InstantOutQuote", |
| 107 | + "event": "response", |
| 108 | + "message_type": "looprpc.InstantOutQuoteResponse", |
| 109 | + "payload": { |
| 110 | + "service_fee_sat": "4800", |
| 111 | + "sweep_fee_sat": "5650" |
| 112 | + } |
| 113 | + } |
| 114 | + }, |
| 115 | + { |
| 116 | + "time_ms": 177, |
| 117 | + "kind": "grpc", |
| 118 | + "data": { |
| 119 | + "method": "/looprpc.SwapClient/InstantOut", |
| 120 | + "event": "request", |
| 121 | + "message_type": "looprpc.InstantOutRequest", |
| 122 | + "payload": { |
| 123 | + "reservation_ids": [ |
| 124 | + "s/RD6Lj/eXdmtFCtd/6AvrJQrP14h1YrblyZZMWITYc=", |
| 125 | + "Wl+CTsY+V2zUvkK5bs9WIttkvKLrKM8A1kpZ5VZ/MHs=", |
| 126 | + "Mu65fbhayEtRzougKLBnoeRN8f+tEM1+O9QuNvUIfbI=" |
| 127 | + ], |
| 128 | + "outgoing_chan_set": [], |
| 129 | + "dest_addr": "" |
| 130 | + } |
| 131 | + } |
| 132 | + }, |
| 133 | + { |
| 134 | + "time_ms": 177, |
| 135 | + "kind": "stdout", |
| 136 | + "data": { |
| 137 | + "text": "\nEstimated on-chain fee: 5650 sat\nService fee: 4800 sat\n\nCONTINUE SWAP? (y/n): Starting instant swap out\n" |
| 138 | + } |
| 139 | + }, |
| 140 | + { |
| 141 | + "time_ms": 1574, |
| 142 | + "kind": "grpc", |
| 143 | + "data": { |
| 144 | + "method": "/looprpc.SwapClient/InstantOut", |
| 145 | + "event": "response", |
| 146 | + "message_type": "looprpc.InstantOutResponse", |
| 147 | + "payload": { |
| 148 | + "instant_out_hash": "uxbiybKoHjn4B4b+yHRFGI9e12jMMtTLEvNnF7wYriU=", |
| 149 | + "sweep_tx_id": "a1650cb339118e58f317bbbbd8cff720e0cc02a9fe159c9286724d6f5722fef2", |
| 150 | + "state": "PushPreimage" |
| 151 | + } |
| 152 | + } |
| 153 | + }, |
| 154 | + { |
| 155 | + "time_ms": 1574, |
| 156 | + "kind": "stdout", |
| 157 | + "data": { |
| 158 | + "text": "Instant out swap initiated with ID: bb16e2c9b2a81e39f80786fec87445188f5ed768cc32d4cb12f36717bc18ae25, State: PushPreimage \nSweepless sweep tx id: a1650cb339118e58f317bbbbd8cff720e0cc02a9fe159c9286724d6f5722fef2 \n" |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "time_ms": 1574, |
| 163 | + "kind": "exit", |
| 164 | + "data": {} |
| 165 | + } |
| 166 | + ] |
| 167 | +} |
0 commit comments