Skip to content

Commit 662f954

Browse files
committed
testdata: add liquidity sessions
1 parent 541e0e0 commit 662f954

19 files changed

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

0 commit comments

Comments
 (0)