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

Cache contracts to disk on local node temporarily #2257

Open
antazoey opened this issue Aug 30, 2024 · 2 comments
Open

Cache contracts to disk on local node temporarily #2257

antazoey opened this issue Aug 30, 2024 · 2 comments
Labels
category: feature New feature or request

Comments

@antazoey
Copy link
Member

Overview

Imagine this:

You start a process using a locally connected node and Ape... it deploys a contract.
In another shell, you connect to the same node. You have access to the contract type but the instance is not cached to disk and not in your new process's memory and so you have to either copy it in yourself and dig through account history and make assumptions.

Specification

create a local cache for contract instances, much like live networks, except have it get cleaned up in the end.
the best to clean it up actually is during the starting of the process.
if ape is not starting any process, it wont clean.
if you end a proces and re start, it will have a fresh cleaned env

Dependencies

Include links to any open issues that must be resolved before this feature can be implemented.

@antazoey antazoey added the category: feature New feature or request label Aug 30, 2024
Copy link

linear bot commented Aug 30, 2024

@antazoey
Copy link
Member Author

antazoey commented Sep 3, 2024

this gets tricky when considering isolation as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant