Skip to content

Commit 2b68458

Browse files
committed
testdata: add instantout and l402 sessions
1 parent 0b87c9b commit 2b68458

10 files changed

Lines changed: 1113 additions & 0 deletions
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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+
},
16+
"events": [
17+
{
18+
"time_ms": 1,
19+
"kind": "grpc",
20+
"data": {
21+
"method": "/looprpc.SwapClient/ListReservations",
22+
"event": "request",
23+
"message_type": "looprpc.ListReservationsRequest",
24+
"payload": {}
25+
}
26+
},
27+
{
28+
"time_ms": 177,
29+
"kind": "grpc",
30+
"data": {
31+
"method": "/looprpc.SwapClient/ListReservations",
32+
"event": "response",
33+
"message_type": "looprpc.ListReservationsResponse",
34+
"payload": {
35+
"reservations": [
36+
{
37+
"reservation_id": "s/RD6Lj/eXdmtFCtd/6AvrJQrP14h1YrblyZZMWITYc=",
38+
"state": "Confirmed",
39+
"amount": "800000",
40+
"tx_id": "8b3b5e235ad24be42bc3802c6694566964c394df247b4ae1f2f4fd785e5acd17",
41+
"vout": 0,
42+
"expiry": 1619
43+
},
44+
{
45+
"reservation_id": "Wl+CTsY+V2zUvkK5bs9WIttkvKLrKM8A1kpZ5VZ/MHs=",
46+
"state": "Confirmed",
47+
"amount": "800000",
48+
"tx_id": "beb447976c6c1a93fdadee41280b912e62b305c7c30815dc172d58732b6c3836",
49+
"vout": 0,
50+
"expiry": 1623
51+
},
52+
{
53+
"reservation_id": "Mu65fbhayEtRzougKLBnoeRN8f+tEM1+O9QuNvUIfbI=",
54+
"state": "Confirmed",
55+
"amount": "800000",
56+
"tx_id": "5f898ca1b3852c62889f1113e07c73d0a3d721fd98d0a5433c6b7122cc706952",
57+
"vout": 0,
58+
"expiry": 1626
59+
}
60+
]
61+
}
62+
}
63+
},
64+
{
65+
"time_ms": 177,
66+
"kind": "stdout",
67+
"data": {
68+
"text": "{\n \"reservations\": [\n {\n \"amount\": \"800000\",\n \"expiry\": 1619,\n \"reservation_id\": \"b3f443e8b8ff797766b450ad77fe80beb250acfd7887562b6e5c9964c5884d87\",\n \"state\": \"Confirmed\",\n \"tx_id\": \"8b3b5e235ad24be42bc3802c6694566964c394df247b4ae1f2f4fd785e5acd17\",\n \"vout\": 0\n },\n {\n \"amount\": \"800000\",\n \"expiry\": 1623,\n \"reservation_id\": \"5a5f824ec63e576cd4be42b96ecf5622db64bca2eb28cf00d64a59e5567f307b\",\n \"state\": \"Confirmed\",\n \"tx_id\": \"beb447976c6c1a93fdadee41280b912e62b305c7c30815dc172d58732b6c3836\",\n \"vout\": 0\n },\n {\n \"amount\": \"800000\",\n \"expiry\": 1626,\n \"reservation_id\": \"32eeb97db85ac84b51ce8ba028b067a1e44df1ffad10cd7e3bd42e36f5087db2\",\n \"state\": \"Confirmed\",\n \"tx_id\": \"5f898ca1b3852c62889f1113e07c73d0a3d721fd98d0a5433c6b7122cc706952\",\n \"vout\": 0\n }\n ]\n}\n"
69+
}
70+
},
71+
{
72+
"time_ms": 177,
73+
"kind": "exit",
74+
"data": {}
75+
}
76+
]
77+
}
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
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+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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+
},
15+
"events": [
16+
{
17+
"time_ms": 1,
18+
"kind": "grpc",
19+
"data": {
20+
"method": "/looprpc.SwapClient/ListInstantOuts",
21+
"event": "request",
22+
"message_type": "looprpc.ListInstantOutsRequest",
23+
"payload": {}
24+
}
25+
},
26+
{
27+
"time_ms": 142,
28+
"kind": "grpc",
29+
"data": {
30+
"method": "/looprpc.SwapClient/ListInstantOuts",
31+
"event": "response",
32+
"message_type": "looprpc.ListInstantOutsResponse",
33+
"payload": {
34+
"swaps": [
35+
{
36+
"swap_hash": "uxbiybKoHjn4B4b+yHRFGI9e12jMMtTLEvNnF7wYriU=",
37+
"state": "WaitForSweeplessSweepConfirmed",
38+
"amount": "2400000",
39+
"reservation_ids": [
40+
"s/RD6Lj/eXdmtFCtd/6AvrJQrP14h1YrblyZZMWITYc=",
41+
"Wl+CTsY+V2zUvkK5bs9WIttkvKLrKM8A1kpZ5VZ/MHs=",
42+
"Mu65fbhayEtRzougKLBnoeRN8f+tEM1+O9QuNvUIfbI="
43+
],
44+
"sweep_tx_id": "a1650cb339118e58f317bbbbd8cff720e0cc02a9fe159c9286724d6f5722fef2"
45+
}
46+
]
47+
}
48+
}
49+
},
50+
{
51+
"time_ms": 142,
52+
"kind": "stdout",
53+
"data": {
54+
"text": "{\n \"swaps\": [\n {\n \"amount\": \"2400000\",\n \"reservation_ids\": [\n \"b3f443e8b8ff797766b450ad77fe80beb250acfd7887562b6e5c9964c5884d87\",\n \"5a5f824ec63e576cd4be42b96ecf5622db64bca2eb28cf00d64a59e5567f307b\",\n \"32eeb97db85ac84b51ce8ba028b067a1e44df1ffad10cd7e3bd42e36f5087db2\"\n ],\n \"state\": \"WaitForSweeplessSweepConfirmed\",\n \"swap_hash\": \"bb16e2c9b2a81e39f80786fec87445188f5ed768cc32d4cb12f36717bc18ae25\",\n \"sweep_tx_id\": \"a1650cb339118e58f317bbbbd8cff720e0cc02a9fe159c9286724d6f5722fef2\"\n }\n ]\n}\n"
55+
}
56+
},
57+
{
58+
"time_ms": 142,
59+
"kind": "exit",
60+
"data": {}
61+
}
62+
]
63+
}

0 commit comments

Comments
 (0)