We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8948197 commit 0659359Copy full SHA for 0659359
tinyman/liquid_staking/struct.py
@@ -1,14 +1,15 @@
1
# TODO: move struct to parent.
2
+import importlib.resources
3
import json
4
import re
5
from typing import Any
-
6
+import tinyman.liquid_staking
7
8
MINIMUM_BALANCE_REQUIREMENT_PER_BOX = 2_500
9
MINIMUM_BALANCE_REQUIREMENT_PER_BOX_BYTE = 400
10
11
-structs = json.load(open("structs.json"))["structs"]
12
+structs = json.load(importlib.resources.files(tinyman.liquid_staking).joinpath("structs.json").read_text())["structs"]
13
14
15
class Struct():
0 commit comments