Skip to content

Commit cf3854e

Browse files
committed
fix: restore cassettes
1 parent 9be6ff9 commit cf3854e

11 files changed

+523
-4
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ coverage.xml
172172
.hypothesis/
173173
.pytest_cache/
174174

175-
# VCR cassettes for test recordings
176-
cassettes/
177-
tests/cassettes/
178-
179175
# Translations
180176
*.mo
181177
*.pot
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "batchClearinghouseStates", "users": ["0x31ca8395cf837de08b24da3f660e77761dfb974b",
4+
"0x2ba553d9f990a3b66b03b2dc0d030dfc1c061036"], "dex": ""}'
5+
headers:
6+
Accept:
7+
- '*/*'
8+
Accept-Encoding:
9+
- gzip, deflate
10+
Connection:
11+
- keep-alive
12+
Content-Length:
13+
- '150'
14+
Content-Type:
15+
- application/json
16+
User-Agent:
17+
- python-requests/2.32.3
18+
method: POST
19+
uri: https://api.hyperliquid.xyz/info
20+
response:
21+
body:
22+
string: 'null'
23+
headers:
24+
Connection:
25+
- keep-alive
26+
Content-Length:
27+
- '4'
28+
Content-Type:
29+
- application/json
30+
Date:
31+
- Fri, 22 Aug 2025 11:45:21 GMT
32+
Server:
33+
- nginx/1.22.1
34+
Via:
35+
- 1.1 bd96095bb3c15c742ab4d72d1fecba6c.cloudfront.net (CloudFront)
36+
X-Amz-Cf-Id:
37+
- 716oMhKaZxZC9dod6b-3otnwwlDnfV8G-vBOT-qZ9zkZPZQzpy2YpQ==
38+
X-Amz-Cf-Pop:
39+
- FRA60-P5
40+
X-Cache:
41+
- Error from cloudfront
42+
access-control-allow-origin:
43+
- '*'
44+
access-control-expose-headers:
45+
- '*'
46+
vary:
47+
- origin
48+
- access-control-request-method
49+
- access-control-request-headers
50+
status:
51+
code: 500
52+
message: Internal Server Error
53+
version: 1
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "delegatorHistory", "user": "0x2ba553d9f990a3b66b03b2dc0d030dfc1c061036"}'
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '82'
13+
Content-Type:
14+
- application/json
15+
User-Agent:
16+
- python-requests/2.32.3
17+
method: POST
18+
uri: https://api.hyperliquid.xyz/info
19+
response:
20+
body:
21+
string: '[{"time":1751382238782,"hash":"0xaea14981ae79c88826b104269e1e61020161008a69327e1bd0716a870eb0032e","delta":{"delegate":{"validator":"0xb8f45222a3246a2b0104696a1df26842007c5bc5","amount":"89968.0","isUndelegate":false}}},{"time":1751382217852,"hash":"0xa41a74f16345b8b0ba4e04269e1d5d018200756676283eee1bbc9d4e86d0d942","delta":{"cDeposit":{"amount":"89968.0"}}},{"time":1746636092325,"hash":"0x1520bf77c0dae738c8130422ff52cf01cc00f7c6f145792f2eeca62d178cd048","delta":{"delegate":{"validator":"0xb8f45222a3246a2b0104696a1df26842007c5bc5","amount":"10000.1","isUndelegate":false}}},{"time":1746636051729,"hash":"0x88f45bda40a6b572ef230422ff50cf01e20075ab01e3a48566ea9979a7ac6313","delta":{"cDeposit":{"amount":"10000.1"}}}]'
22+
headers:
23+
Connection:
24+
- keep-alive
25+
Content-Length:
26+
- '721'
27+
Content-Type:
28+
- application/json
29+
Date:
30+
- Fri, 22 Aug 2025 11:45:24 GMT
31+
Server:
32+
- nginx/1.22.1
33+
Via:
34+
- 1.1 628e5146add9b3daeb91ab8792398818.cloudfront.net (CloudFront)
35+
X-Amz-Cf-Id:
36+
- B6JLp5pY_ZwV5Maq5tZMTGwlfJSngY7VdiQZMSn9iMwnWap6HroQEg==
37+
X-Amz-Cf-Pop:
38+
- FRA60-P5
39+
X-Cache:
40+
- Miss from cloudfront
41+
access-control-allow-origin:
42+
- '*'
43+
access-control-expose-headers:
44+
- '*'
45+
vary:
46+
- origin
47+
- access-control-request-method
48+
- access-control-request-headers
49+
status:
50+
code: 200
51+
message: OK
52+
version: 1

tests/cassettes/info_test/test_historical_orders.yaml

Lines changed: 52 additions & 0 deletions
Large diffs are not rendered by default.

tests/cassettes/info_test/test_portfolio.yaml

Lines changed: 52 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "userNonFundingLedgerUpdates", "user": "0x2ba553d9f990a3b66b03b2dc0d030dfc1c061036",
4+
"startTime": 1681923833000, "endTime": 1682010233000}'
5+
headers:
6+
Accept:
7+
- '*/*'
8+
Accept-Encoding:
9+
- gzip, deflate
10+
Connection:
11+
- keep-alive
12+
Content-Length:
13+
- '147'
14+
Content-Type:
15+
- application/json
16+
User-Agent:
17+
- python-requests/2.32.3
18+
method: POST
19+
uri: https://api.hyperliquid.xyz/info
20+
response:
21+
body:
22+
string: '[]'
23+
headers:
24+
Connection:
25+
- keep-alive
26+
Content-Length:
27+
- '2'
28+
Content-Type:
29+
- application/json
30+
Date:
31+
- Fri, 22 Aug 2025 11:45:20 GMT
32+
Server:
33+
- nginx/1.22.1
34+
Via:
35+
- 1.1 bc841916063a49c638b48e73f77a28e8.cloudfront.net (CloudFront)
36+
X-Amz-Cf-Id:
37+
- D8Oa1RQKRIe6INTVcGG14k0D09p8YP-IFdUOAeppzsojGT-ojYedOA==
38+
X-Amz-Cf-Pop:
39+
- FRA60-P5
40+
X-Cache:
41+
- Miss from cloudfront
42+
access-control-allow-origin:
43+
- '*'
44+
access-control-expose-headers:
45+
- '*'
46+
vary:
47+
- origin
48+
- access-control-request-method
49+
- access-control-request-headers
50+
status:
51+
code: 200
52+
message: OK
53+
version: 1

tests/cassettes/info_test/test_user_non_funding_ledger_updates_without_end_time.yaml

Lines changed: 53 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "userRateLimit", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"}'
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '79'
13+
Content-Type:
14+
- application/json
15+
User-Agent:
16+
- python-requests/2.32.3
17+
method: POST
18+
uri: https://api.hyperliquid.xyz/info
19+
response:
20+
body:
21+
string: '{"cumVlm":"170043721737.450012207","nRequestsUsed":36589831368,"nRequestsCap":170043731737}'
22+
headers:
23+
Connection:
24+
- keep-alive
25+
Content-Length:
26+
- '91'
27+
Content-Type:
28+
- application/json
29+
Date:
30+
- Fri, 22 Aug 2025 11:45:23 GMT
31+
Server:
32+
- nginx/1.22.1
33+
Via:
34+
- 1.1 76f18545659f3cecc2213d8e93d15fb2.cloudfront.net (CloudFront)
35+
X-Amz-Cf-Id:
36+
- lXzwL1ejqdnvtapMPFADHuF-H134yuDqjaHhGTI0xiueITWcLuT_xw==
37+
X-Amz-Cf-Pop:
38+
- FRA60-P5
39+
X-Cache:
40+
- Miss from cloudfront
41+
access-control-allow-origin:
42+
- '*'
43+
access-control-expose-headers:
44+
- '*'
45+
vary:
46+
- origin
47+
- access-control-request-method
48+
- access-control-request-headers
49+
status:
50+
code: 200
51+
message: OK
52+
version: 1
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "userRole", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"}'
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '74'
13+
Content-Type:
14+
- application/json
15+
User-Agent:
16+
- python-requests/2.32.3
17+
method: POST
18+
uri: https://api.hyperliquid.xyz/info
19+
response:
20+
body:
21+
string: '{"role":"vault"}'
22+
headers:
23+
Connection:
24+
- keep-alive
25+
Content-Length:
26+
- '16'
27+
Content-Type:
28+
- application/json
29+
Date:
30+
- Fri, 22 Aug 2025 11:45:23 GMT
31+
Server:
32+
- nginx/1.22.1
33+
Via:
34+
- 1.1 40b08d02195372b460c02aaae6d50d56.cloudfront.net (CloudFront)
35+
X-Amz-Cf-Id:
36+
- EoBGLdZwU50oH_VY76kMqRSswZheHjl3AQIcH8jOC9rEadQk7Bbkcw==
37+
X-Amz-Cf-Pop:
38+
- FRA60-P5
39+
X-Cache:
40+
- Miss from cloudfront
41+
access-control-allow-origin:
42+
- '*'
43+
access-control-expose-headers:
44+
- '*'
45+
vary:
46+
- origin
47+
- access-control-request-method
48+
- access-control-request-headers
49+
status:
50+
code: 200
51+
message: OK
52+
version: 1
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
interactions:
2+
- request:
3+
body: '{"type": "userTwapSliceFills", "user": "0x31ca8395cf837de08b24da3f660e77761dfb974b"}'
4+
headers:
5+
Accept:
6+
- '*/*'
7+
Accept-Encoding:
8+
- gzip, deflate
9+
Connection:
10+
- keep-alive
11+
Content-Length:
12+
- '84'
13+
Content-Type:
14+
- application/json
15+
User-Agent:
16+
- python-requests/2.32.3
17+
method: POST
18+
uri: https://api.hyperliquid.xyz/info
19+
response:
20+
body:
21+
string: '[]'
22+
headers:
23+
Connection:
24+
- keep-alive
25+
Content-Length:
26+
- '2'
27+
Content-Type:
28+
- application/json
29+
Date:
30+
- Fri, 22 Aug 2025 11:45:22 GMT
31+
Server:
32+
- nginx/1.22.1
33+
Via:
34+
- 1.1 eb99f1f32a184a8c9c9c920381a7576a.cloudfront.net (CloudFront)
35+
X-Amz-Cf-Id:
36+
- HHFmJ8MdL4g0kPSSPLR0b_qEp6uxuVRQMhCLwD6Wf3ZfjlUzai4L-w==
37+
X-Amz-Cf-Pop:
38+
- FRA60-P5
39+
X-Cache:
40+
- Miss from cloudfront
41+
access-control-allow-origin:
42+
- '*'
43+
access-control-expose-headers:
44+
- '*'
45+
vary:
46+
- origin
47+
- access-control-request-method
48+
- access-control-request-headers
49+
status:
50+
code: 200
51+
message: OK
52+
version: 1

0 commit comments

Comments
 (0)