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
Validator manager contract utils #197
Comments
Made some updates to try and add some clarity to how this might be implemented. |
Interesting, the contract API starts to feel a lot like web3.py: http://web3py.readthedocs.io/en/latest/web3.eth.html#web3.eth.Eth.contract Maybe we could rip out some part of web3 into a new |
Yep I'm working on this. I crafted an interface for RPC handling using |
I'm going to backpedal hard on my original suggestion since I think I may have missed something crutial. @mhchia does this interaction happen over the JSON-RPC interface?
|
@pipermerriam Now performing a contract call is performed by send_vmc_tx, specifying the If it is better to use web3.py contract object, I can change to that:) |
Just in case you are not aware. You may be able to slim down to a single handler that only uses web3.py and still leverage |
@pipermerriam Thank you. It's so great! I will modify them to use |
I tried |
@mhchia which endpoints? Depending on what they are it should be easy to implement them. |
I'm really sorry that I just found I missed a word in the comment above(*I'm not in a hurry for this part...). I apologize if I made you misunderstand. |
close it via #206 |
Implement some APIs for shard chain validators to call the
validator manager contract
on main chain.Implementation should probably remain low level. A simplistic
Contract
class with the following API should suffice.factory
class method which acceptsabi
and returns aContractClass
ContractClass
as returned byBaseContract.factory
can be instantiated with a singleaddress
.ContractClass
for constructing a transaction (TODO: should this be a dictionary, aMessage
class, or something else?)There are likely some other convenience APIs that should be added around this functionality to make common tasks easier as we find what those are.
I think this code should live in something like
evm.utils.contracts
.The text was updated successfully, but these errors were encountered: