-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: add publisher program to sync cli #44
Conversation
a523264
to
8d152f3
Compare
8d152f3
to
eb23897
Compare
program_admin/__init__.py
Outdated
@@ -100,6 +114,12 @@ async def fetch_minimum_balance(self, size: int) -> int: | |||
async with AsyncClient(self.rpc_endpoint) as client: | |||
return (await client.get_minimum_balance_for_rent_exemption(size)).value | |||
|
|||
async def account_exists(self, key: PublicKey) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already an account_exists
function in util.py (it's being imported and used already in this file too)
@@ -16,6 +16,15 @@ | |||
from program_admin import instructions as pyth_program | |||
from program_admin.keys import load_keypair | |||
from program_admin.parsing import parse_account | |||
from program_admin.publisher_program_instructions import ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you use a formatter such as black/ruff it will combine these two import declarations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it seems that the formatter in pre-commit (black i assume) is breaking them apart. idk why but i can't join them.
No description provided.