-
Notifications
You must be signed in to change notification settings - Fork 143
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
[EXP-16-218] Treasury and SMS on fantom #218
Conversation
* feat: add transactions exporter to docker * chore: reduce unnecessary printing * feat: user balances
This reverts commit 15e3d1d.
EXP-16 [EXP-16-218] Treasury and SMS on fantom
This PR includes the data export functionality for Fantom Treasury and SMS dashboards. |
from yearn.treasury.treasury import YearnTreasury | ||
from yearn.utils import closest_block_after_timestamp | ||
|
||
logger = logging.getLogger('yearn.historical_treasury_exporter') | ||
|
||
def main(): | ||
start = datetime.now(tz=timezone.utc) | ||
# end: 2020-07-21 first treasury tx | ||
end = datetime(2020, 7, 21, 10, 1, tzinfo=timezone.utc) | ||
if Network(chain.id) == Network.Fantom: |
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.
same two comments apply here
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.
fix'd, commit pending
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 used dict(details)[chain.id] syntax instead of dict(details).get(chain.id) syntax to show we require chainid to be supported, have no fallback
Co-authored-by: banteg <[email protected]>
This PR includes the data export functionality for Fantom Treasury and SMS dashboards.
Dashboard files will be updated at a later time.