Skip to content

Commit 074257e

Browse files
committed
testdata: add instantout and l402 sessions
1 parent 5157dad commit 074257e

10 files changed

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

0 commit comments

Comments
 (0)