Skip to content

Commit

Permalink
chore: trying to figure out a way. updated dependencies of the project
Browse files Browse the repository at this point in the history
  • Loading branch information
avik committed Jul 8, 2024
1 parent 4e7c189 commit ef1d677
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
20 changes: 20 additions & 0 deletions ape_utils/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from multicall.signature import parse_signature
from eth_typing.abi import TypeStr
from ethpm_types.abi import ABIType, MethodABI

"""
cast call 0x9b7FD6FF5e427F8470E1da652f21A79Bed318f38 --rpc-url $sepoliafork "gsr_query(uint256)" 6147190
"""

def get_sitnature(signature: str) -> None:
#return parse_signature(signature)
name, inputs, outputs = multicall.signature.parse_signature('gsr_query(uint256 arg1)(string data)')
inp = ABIType(name=name, type=inputs[0].split(" ")[0])
out = ABIType(type=outputs[0].split(" ")[0])
method_abi = MethodABI(name=name, inputs=[inp], outputs=[out])



def main() -> None:
function_sig: str = "gsr_query(uint256)(string)"
get_sitnature(function_sig)
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ exclude_lines = [
[tool.hatch.build.targets.wheel]
include = ["**/*", "LICENSE", "README.md"]


[tool.hatch.envs.default]
installer = "uv"
dependencies = [
"eth-ape",
"multicall"
]

[tool.hatch.envs.dev]
dependencies = [
"commitizen",
"pre-commit",
Expand Down

0 comments on commit ef1d677

Please sign in to comment.