vyperlang / titanoboa

a vyper interpreter
https://titanoboa.readthedocs.io
Other
247 stars 49 forks source link

Implement RPC calls in Jupyter/Colab #124

Closed DanielSchiavini closed 7 months ago

DanielSchiavini commented 7 months ago

Fixes #119 Depends on https://github.com/vyperlang/titanoboa/pull/132

What I did

Extended the interface with the browser to support RPC calls.

How I did it

It includes two new classes on the python side:

The JavaScript uses this method from ethers.js.

Tests are included, but unfortunately I had to mock all jupyter and tornado dependencies - they aren't installed in boa normally.

How to verify it

Install this branch and then run in Jupyter or Google Colab:

import boa
boa.set_browser()

image

Description for the changelog

Cute Animal Picture

image