Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper function to get IMA abi address #559

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions skale/utils/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@
return cast(str, get_abi(abi_filepath)['skale_manager_address'])


def get_skale_ima_address(abi_filepath: str | None = None) -> str:
return cast(str, get_abi(abi_filepath)['message_proxy_mainnet_address'])

Check warning on line 139 in skale/utils/helper.py

View check run for this annotation

Codecov / codecov/patch

skale/utils/helper.py#L139

Added line #L139 was not covered by tests


def get_allocator_address(abi_filepath: str | None = None) -> str:
return cast(str, get_abi(abi_filepath)['allocator_address'])

Expand Down
Loading