CityOfZion / neo-python

Python Node and SDK for the NEO 2.x blockchain. For NEO 3.x go to our successor project neo-mamba
https://neo-python.readthedocs.io/en/latest/
MIT License
313 stars 189 forks source link

Deploy Neo Smart Contract at runtiime. #1018

Closed Avdhesh51000 closed 4 years ago

Avdhesh51000 commented 4 years ago

I am trying to deploy the NEO smart contract at the run time, with dynamic contract, created by my as per requirement. Did any one have any reference for deploying it to test-net / Main-net directly. I have to deploy the contract in python and Ruby. For this i also tried Neopy (Neo-python) but there is issue it's have their own console and i am unable to throw the command on that terminal/console and also tried neojs but unable to find solution.

Is there is any way for that. please provide any reference for the same.

ixje commented 4 years ago

I am trying to deploy the NEO smart contract at the run time

Is this contract already in its binary form (=.avm)?

Did any one have any reference for deploying it to test-net / Main-net directly. I have to deploy the contract in python and Ruby

I can't say anything about Ruby. You don't need to use the console, but you can look at the code for the deploy console command (sc deploy) and use that directly (linked below) https://github.com/CityOfZion/neo-python/blob/8061071e6e58fd98b1d56745cd2e051832e051a7/neo/Prompt/Commands/SC.py#L257

Avdhesh51000 commented 4 years ago

Is this contract already in its binary form (=.avm)?

No, .avm will also generated at run time.

I am trying to deploy the NEO smart contract at the run time

Is this contract already in its binary form (=.avm)?

Did any one have any reference for deploying it to test-net / Main-net directly. I have to deploy the contract in python and Ruby

I can't say anything about Ruby. You don't need to use the console, but you can look at the code for the deploy console command (sc deploy) and use that directly (linked below) https://github.com/CityOfZion/neo-python/blob/8061071e6e58fd98b1d56745cd2e051832e051a7/neo/Prompt/Commands/SC.py#L257

Avdhesh51000 commented 4 years ago

Is this contract already in its binary form (=.avm)?

No, .avm will also generated at run time. their is only a contract file which, need to be compiled , verified and deployed on test-net or main-net.

ixje commented 4 years ago

look at the sc build command how to compile, or just look at the neo-boa project and the readme there

ixje commented 4 years ago

Closing due to inactivity. Assumed to be resolved.