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

create Casper deploy script #5

Open
wants to merge 1 commit into
base: message-store
Choose a base branch
from

Conversation

karlfloersch
Copy link
Member

@karlfloersch karlfloersch commented Mar 27, 2017

This PR is a work in progress.

This adds a simple script which deploys the Casper contract with a hardcoded private key. I want to refactor this soon to instead use the currently logged in account's private key.

Potential issues

Python3/Viper

I created a file, casper_contract.py which includes the compiled Casper contract and interface. The reason I didn't simply compile the contract myself, is because it is written in Viper, and Viper requires Python 3. I attempted to port our codebase to Python3, but ran up against pydevp2p not supporting Python 3.

I don't really like hardcoding the binary & interface, but I haven't yet come up with a much better solution. I'll revisit this tomorrow.

File structure

The files I added clutter up the directory. I'd like to organize them better so that it doesn't look so messy.

Integration

This script is not integrated at all within the greater app. I was thinking of adding a command for initializing a new Casper contract, though I'm not sure of the best approach.

@karlfloersch karlfloersch changed the title Create Casper deploy script create Casper deploy script Mar 29, 2017
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.

None yet

1 participant