Skip to content

Commit f18a2ee

Browse files
committed
testdata: add liquidity sessions
1 parent f70d2ce commit f18a2ee

19 files changed

Lines changed: 2344 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+
"getparams",
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": 213058408
14+
},
15+
"events": [
16+
{
17+
"time_ms": 1,
18+
"kind": "grpc",
19+
"data": {
20+
"method": "/looprpc.SwapClient/GetLiquidityParams",
21+
"event": "request",
22+
"message_type": "looprpc.GetLiquidityParamsRequest",
23+
"payload": {}
24+
}
25+
},
26+
{
27+
"time_ms": 212,
28+
"kind": "grpc",
29+
"data": {
30+
"method": "/looprpc.SwapClient/GetLiquidityParams",
31+
"event": "response",
32+
"message_type": "looprpc.LiquidityParameters",
33+
"payload": {
34+
"rules": [],
35+
"fee_ppm": "20000",
36+
"sweep_fee_rate_sat_per_vbyte": "0",
37+
"max_swap_fee_ppm": "0",
38+
"max_routing_fee_ppm": "0",
39+
"max_prepay_routing_fee_ppm": "0",
40+
"max_prepay_sat": "0",
41+
"max_miner_fee_sat": "0",
42+
"sweep_conf_target": 100,
43+
"failure_backoff_sec": "86400",
44+
"autoloop": false,
45+
"autoloop_budget_sat": "335544",
46+
"autoloop_budget_start_sec": "0",
47+
"auto_max_in_flight": "1",
48+
"min_swap_amount": "0",
49+
"max_swap_amount": "0",
50+
"htlc_conf_target": 6,
51+
"autoloop_dest_address": "",
52+
"autoloop_budget_refresh_period_sec": "604800",
53+
"autoloop_budget_last_refresh": "1770076824",
54+
"easy_autoloop": false,
55+
"easy_autoloop_local_target_sat": "0",
56+
"account": "",
57+
"account_addr_type": "ADDRESS_TYPE_UNKNOWN",
58+
"easy_asset_params": {},
59+
"fast_swap_publication": true,
60+
"easy_autoloop_excluded_peers": []
61+
}
62+
}
63+
},
64+
{
65+
"time_ms": 212,
66+
"kind": "stdout",
67+
"data": {
68+
"text": "{\n \"account\": \"\",\n \"account_addr_type\": \"ADDRESS_TYPE_UNKNOWN\",\n \"auto_max_in_flight\": \"1\",\n \"autoloop\": false,\n \"autoloop_budget_last_refresh\": \"1770076824\",\n \"autoloop_budget_refresh_period_sec\": \"604800\",\n \"autoloop_budget_sat\": \"335544\",\n \"autoloop_budget_start_sec\": \"0\",\n \"autoloop_dest_address\": \"\",\n \"easy_asset_params\": {},\n \"easy_autoloop\": false,\n \"easy_autoloop_excluded_peers\": [],\n \"easy_autoloop_local_target_sat\": \"0\",\n \"failure_backoff_sec\": \"86400\",\n \"fast_swap_publication\": true,\n \"fee_ppm\": \"20000\",\n \"htlc_conf_target\": 6,\n \"max_miner_fee_sat\": \"0\",\n \"max_prepay_routing_fee_ppm\": \"0\",\n \"max_prepay_sat\": \"0\",\n \"max_routing_fee_ppm\": \"0\",\n \"max_swap_amount\": \"0\",\n \"max_swap_fee_ppm\": \"0\",\n \"min_swap_amount\": \"0\",\n \"rules\": [],\n \"sweep_conf_target\": 100,\n \"sweep_fee_rate_sat_per_vbyte\": \"0\"\n}\n"
69+
}
70+
},
71+
{
72+
"time_ms": 213,
73+
"kind": "exit",
74+
"data": {}
75+
}
76+
]
77+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"metadata": {
3+
"args": [
4+
"/home/user/bin/loop",
5+
"setparams",
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+
"run_error": "at least one flag required to set params",
14+
"duration": 150177446
15+
},
16+
"events": [
17+
{
18+
"time_ms": 5,
19+
"kind": "grpc",
20+
"data": {
21+
"method": "/looprpc.SwapClient/GetLiquidityParams",
22+
"event": "request",
23+
"message_type": "looprpc.GetLiquidityParamsRequest",
24+
"payload": {}
25+
}
26+
},
27+
{
28+
"time_ms": 149,
29+
"kind": "grpc",
30+
"data": {
31+
"method": "/looprpc.SwapClient/GetLiquidityParams",
32+
"event": "response",
33+
"message_type": "looprpc.LiquidityParameters",
34+
"payload": {
35+
"rules": [
36+
{
37+
"channel_id": "0",
38+
"swap_type": "LOOP_OUT",
39+
"pubkey": "A0+ogC/cn4wTfo8szi5NMOWQoTFOFr0GCsfXctxpj/S8",
40+
"type": "THRESHOLD",
41+
"incoming_threshold": 10,
42+
"outgoing_threshold": 0
43+
}
44+
],
45+
"fee_ppm": "20000",
46+
"sweep_fee_rate_sat_per_vbyte": "0",
47+
"max_swap_fee_ppm": "0",
48+
"max_routing_fee_ppm": "0",
49+
"max_prepay_routing_fee_ppm": "0",
50+
"max_prepay_sat": "0",
51+
"max_miner_fee_sat": "0",
52+
"sweep_conf_target": 100,
53+
"failure_backoff_sec": "86400",
54+
"autoloop": false,
55+
"autoloop_budget_sat": "335544",
56+
"autoloop_budget_start_sec": "0",
57+
"auto_max_in_flight": "1",
58+
"min_swap_amount": "0",
59+
"max_swap_amount": "0",
60+
"htlc_conf_target": 6,
61+
"autoloop_dest_address": "",
62+
"autoloop_budget_refresh_period_sec": "604800",
63+
"autoloop_budget_last_refresh": "1770076824",
64+
"easy_autoloop": false,
65+
"easy_autoloop_local_target_sat": "0",
66+
"account": "",
67+
"account_addr_type": "ADDRESS_TYPE_UNKNOWN",
68+
"easy_asset_params": {},
69+
"fast_swap_publication": true,
70+
"easy_autoloop_excluded_peers": []
71+
}
72+
}
73+
},
74+
{
75+
"time_ms": 150,
76+
"kind": "stderr",
77+
"data": {
78+
"text": "[loop] at least one flag required to set params\n"
79+
}
80+
},
81+
{
82+
"time_ms": 150,
83+
"kind": "exit",
84+
"data": {
85+
"run_error": "at least one flag required to set params"
86+
}
87+
}
88+
]
89+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"metadata": {
3+
"args": [
4+
"/home/user/bin/loop",
5+
"setparams",
6+
"--network",
7+
"regtest",
8+
"--feepercent",
9+
"2"
10+
],
11+
"env": {
12+
"HOME": "/home/user"
13+
},
14+
"version": "0.31.7-beta commit=v0.31.7-beta-28-g6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845 commit_hash=6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845",
15+
"duration": 249608692
16+
},
17+
"events": [
18+
{
19+
"time_ms": 6,
20+
"kind": "grpc",
21+
"data": {
22+
"method": "/looprpc.SwapClient/GetLiquidityParams",
23+
"event": "request",
24+
"message_type": "looprpc.GetLiquidityParamsRequest",
25+
"payload": {}
26+
}
27+
},
28+
{
29+
"time_ms": 188,
30+
"kind": "grpc",
31+
"data": {
32+
"method": "/looprpc.SwapClient/GetLiquidityParams",
33+
"event": "response",
34+
"message_type": "looprpc.LiquidityParameters",
35+
"payload": {
36+
"rules": [],
37+
"fee_ppm": "20000",
38+
"sweep_fee_rate_sat_per_vbyte": "0",
39+
"max_swap_fee_ppm": "0",
40+
"max_routing_fee_ppm": "0",
41+
"max_prepay_routing_fee_ppm": "0",
42+
"max_prepay_sat": "0",
43+
"max_miner_fee_sat": "0",
44+
"sweep_conf_target": 100,
45+
"failure_backoff_sec": "86400",
46+
"autoloop": false,
47+
"autoloop_budget_sat": "335544",
48+
"autoloop_budget_start_sec": "0",
49+
"auto_max_in_flight": "1",
50+
"min_swap_amount": "0",
51+
"max_swap_amount": "0",
52+
"htlc_conf_target": 6,
53+
"autoloop_dest_address": "",
54+
"autoloop_budget_refresh_period_sec": "604800",
55+
"autoloop_budget_last_refresh": "1770076824",
56+
"easy_autoloop": false,
57+
"easy_autoloop_local_target_sat": "0",
58+
"account": "",
59+
"account_addr_type": "ADDRESS_TYPE_UNKNOWN",
60+
"easy_asset_params": {},
61+
"fast_swap_publication": true,
62+
"easy_autoloop_excluded_peers": []
63+
}
64+
}
65+
},
66+
{
67+
"time_ms": 189,
68+
"kind": "grpc",
69+
"data": {
70+
"method": "/looprpc.SwapClient/SetLiquidityParams",
71+
"event": "request",
72+
"message_type": "looprpc.SetLiquidityParamsRequest",
73+
"payload": {
74+
"parameters": {
75+
"rules": [],
76+
"fee_ppm": "20000",
77+
"sweep_fee_rate_sat_per_vbyte": "0",
78+
"max_swap_fee_ppm": "0",
79+
"max_routing_fee_ppm": "0",
80+
"max_prepay_routing_fee_ppm": "0",
81+
"max_prepay_sat": "0",
82+
"max_miner_fee_sat": "0",
83+
"sweep_conf_target": 100,
84+
"failure_backoff_sec": "86400",
85+
"autoloop": false,
86+
"autoloop_budget_sat": "335544",
87+
"autoloop_budget_start_sec": "0",
88+
"auto_max_in_flight": "1",
89+
"min_swap_amount": "0",
90+
"max_swap_amount": "0",
91+
"htlc_conf_target": 6,
92+
"autoloop_dest_address": "",
93+
"autoloop_budget_refresh_period_sec": "604800",
94+
"autoloop_budget_last_refresh": "1770076824",
95+
"easy_autoloop": false,
96+
"easy_autoloop_local_target_sat": "0",
97+
"account": "",
98+
"account_addr_type": "ADDRESS_TYPE_UNKNOWN",
99+
"easy_asset_params": {},
100+
"fast_swap_publication": true,
101+
"easy_autoloop_excluded_peers": []
102+
}
103+
}
104+
}
105+
},
106+
{
107+
"time_ms": 248,
108+
"kind": "grpc",
109+
"data": {
110+
"method": "/looprpc.SwapClient/SetLiquidityParams",
111+
"event": "response",
112+
"message_type": "looprpc.SetLiquidityParamsResponse",
113+
"payload": {}
114+
}
115+
},
116+
{
117+
"time_ms": 249,
118+
"kind": "exit",
119+
"data": {}
120+
}
121+
]
122+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"metadata": {
3+
"args": [
4+
"/home/user/bin/loop",
5+
"setparams",
6+
"--network",
7+
"regtest",
8+
"--feepercent",
9+
"2",
10+
"--sweeplimit",
11+
"1"
12+
],
13+
"env": {
14+
"HOME": "/home/user"
15+
},
16+
"version": "0.31.7-beta commit=v0.31.7-beta-28-g6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845 commit_hash=6d8ddfc59ddc2dcfd1a9b4e4b3c53a9cf15dd845",
17+
"run_error": "feepercent cannot be set with specific fee category flags",
18+
"duration": 161206474
19+
},
20+
"events": [
21+
{
22+
"time_ms": 4,
23+
"kind": "grpc",
24+
"data": {
25+
"method": "/looprpc.SwapClient/GetLiquidityParams",
26+
"event": "request",
27+
"message_type": "looprpc.GetLiquidityParamsRequest",
28+
"payload": {}
29+
}
30+
},
31+
{
32+
"time_ms": 159,
33+
"kind": "grpc",
34+
"data": {
35+
"method": "/looprpc.SwapClient/GetLiquidityParams",
36+
"event": "response",
37+
"message_type": "looprpc.LiquidityParameters",
38+
"payload": {
39+
"rules": [
40+
{
41+
"channel_id": "0",
42+
"swap_type": "LOOP_OUT",
43+
"pubkey": "A0+ogC/cn4wTfo8szi5NMOWQoTFOFr0GCsfXctxpj/S8",
44+
"type": "THRESHOLD",
45+
"incoming_threshold": 10,
46+
"outgoing_threshold": 0
47+
}
48+
],
49+
"fee_ppm": "20000",
50+
"sweep_fee_rate_sat_per_vbyte": "0",
51+
"max_swap_fee_ppm": "0",
52+
"max_routing_fee_ppm": "0",
53+
"max_prepay_routing_fee_ppm": "0",
54+
"max_prepay_sat": "0",
55+
"max_miner_fee_sat": "0",
56+
"sweep_conf_target": 100,
57+
"failure_backoff_sec": "86400",
58+
"autoloop": false,
59+
"autoloop_budget_sat": "335544",
60+
"autoloop_budget_start_sec": "0",
61+
"auto_max_in_flight": "1",
62+
"min_swap_amount": "0",
63+
"max_swap_amount": "0",
64+
"htlc_conf_target": 6,
65+
"autoloop_dest_address": "",
66+
"autoloop_budget_refresh_period_sec": "604800",
67+
"autoloop_budget_last_refresh": "1770076824",
68+
"easy_autoloop": false,
69+
"easy_autoloop_local_target_sat": "0",
70+
"account": "",
71+
"account_addr_type": "ADDRESS_TYPE_UNKNOWN",
72+
"easy_asset_params": {},
73+
"fast_swap_publication": true,
74+
"easy_autoloop_excluded_peers": []
75+
}
76+
}
77+
},
78+
{
79+
"time_ms": 161,
80+
"kind": "stderr",
81+
"data": {
82+
"text": "[loop] feepercent cannot be set with specific fee category flags\n"
83+
}
84+
},
85+
{
86+
"time_ms": 161,
87+
"kind": "exit",
88+
"data": {
89+
"run_error": "feepercent cannot be set with specific fee category flags"
90+
}
91+
}
92+
]
93+
}

0 commit comments

Comments
 (0)