ntls-io / ntc-smart-contract-mvp

Smart Contract development for NTC MVP.
GNU Affero General Public License v3.0
0 stars 0 forks source link

feat: Python SDK smart contract deployment modules #13

Closed Astewart1510 closed 1 year ago

Astewart1510 commented 1 year ago

Python SDK Data Pool Creation

This feature enables the creation of the data pool smart contract through the implementation of the algorand python SDK. A series of modules were created to simplify the smart contract creation and connection to the blockchain. A directory called "scripts" was created that houses all the code for this feature. Here there are "helper" files that simply operations involving the connection to the blockchain and for parsing/reading data. The script named "operations.py" holds the majority of the custom code to deploy the smart contract and fully create the data pool.

How to test

  1. In terminal navigate to this parent repository.
  2. activate virtual environment and install requirements files = `pip install -r requirements.txt'
  3. set Python Path in terminal - export PYTHONPATH=.
  4. run python file scripts/test_SmartContractDeployment.py - python run [PATHTOFILE]/scripts/test_SmartContractDeployment.py