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

refactor: daemon updates [SBK-173] #17

Merged
merged 3 commits into from
Jul 27, 2023
Merged

Conversation

fubuloubu
Copy link
Member

@fubuloubu fubuloubu commented Jul 13, 2023

Got it working on Sepolia

@vany365 vany365 changed the title refactor: daemon updates refactor: daemon updates [SBK-173] Jul 13, 2023
@linear
Copy link

linear bot commented Jul 13, 2023

@fubuloubu fubuloubu force-pushed the refactor/script-updates branch 3 times, most recently from 8782d82 to 1b8dd84 Compare July 14, 2023 03:21
apepay/__init__.py Outdated Show resolved Hide resolved
Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty raise statements are not valid when there are no exceptions on the stack.

apepay/__init__.py Outdated Show resolved Hide resolved
# return self.chain_manager.contracts.instance_at(self.address)
try:
return self.chain_manager.contracts.instance_at(self.address)
except Exception:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what types of exceptions do you expect here? wondering if we could mitigate anything upstream?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could reduce to the "contract not found" error, only need to fallback on a local network or if we don't have an explorer (although it still won't work unless we somehow bundle the manifest)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return self.project_manager.StreamManager.at(self.address)
# return self.chain_manager.contracts.instance_at(self.address)
try:
return self.chain_manager.contracts.instance_at(self.address)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eventually we will want to include the contracts and reference the project via manifest, right?

.gitignore Outdated Show resolved Hide resolved
@@ -51,16 +52,21 @@ def validate(self, creator, token, amount_per_second, reason) -> bool:

class StreamManager(BaseInterfaceModel):
address: AddressType
contract_type: Optional[ContractType] = None
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to somehow bundle the manifest/contract type with the package so that we always have this as a backup

pyproject.toml Outdated Show resolved Hide resolved
@fubuloubu fubuloubu merged commit 44a7fba into main Jul 27, 2023
2 checks passed
@fubuloubu fubuloubu deleted the refactor/script-updates branch July 27, 2023 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants