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: updated testing script for python SDK deployment #14

Closed Astewart1510 closed 1 year ago

Astewart1510 commented 1 year ago

Python SDK deployment smart contract

This feature created the scripts directory and used the algorand python SDK to build modules to deploy and interact with the smart contract. All the helper functions are contained the in the scripts/helper/ folder. These funtions comprise of standard transactions made to the blockchain, connectivity functions and parsing and reading data functions from the blockchain. The custom code to build transactions for our smart contract that represents a data pool sits in the scripts/opertations.py file. Here transactions were built to complete the full deployment, intialisation and setup of the data pool smart contract.

To Test

Follow the Development Setup in the ReadMe.

  1. Set PythonPath :

    $ export PYTHONPATH=.
  2. Run Deployment Test:

    $ python run [PATHTOFILE]/scripts/test_SmartContractDeployment.py 

When finished, the sandbox can be stopped with ./sandbox down