generated from ApeWorX/project-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: trying to figure out a way. updated dependencies of the project
- Loading branch information
avik
committed
Jul 8, 2024
1 parent
4e7c189
commit ef1d677
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters