Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 902 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 902 Bytes

Dexter Simulations

This repo contains helper scripts for testing the Dexter protocol on Persistence Network. Scripts are still a work in progress and are executed in an ad-hoc manner.

  1. Create virtual environment
pip install virtualenv
python3 -m venv env
  1. Install packages.
pip install cosmos_SDK

To work with persistence devnet, you need to add the following chain id config within the cosmos_SDK package,

- Navigate to /env/lib../cosmos_sdk/client/lcd/lcdclient.py and add the following config to the `get_default` function

    ```
    if chain_id == "persistencecore":    # PERSISTENCE DEVNET
        return [Coins.from_str("0.15uxprt"), Numeric.parse(1.75)]
    ```
  1. Execute testing scripts (ad-hoc)

    cd testnet_simulation
    
    python3 main.py
    

    Or, to clear the console each time, run:

    make