Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.21 KB

readme.md

File metadata and controls

64 lines (44 loc) · 1.21 KB

Bond Issuance Python Dapp

Commands to run this project.

Install the requirements.

pip3 install -r requirements.txt

Change <ethereum_client_ip> in .env file and then run following command:

cd vmbc-eth-sdk/tools/bond_issuance_py

Deploy exchange contract

python cli_parser.py --PTName NIS --PTSymbol NIS --operation deploy

Mint PT for Market Makers

python cli_parser.py --operation mint_pt --MMNumber 1 --PTAmountMint 1000    
python cli_parser.py --operation mint_pt --MMNumber 0 --PTAmountMint 1000 

Mint ST

python cli_parser.py --operation mint_st

Swap tokens

python cli_parser.py --operation swap  --MMNumber 0 --STAmountSwap 1 --ISIN ABCD0001

Close issuance

python cli_parser.py --operation close_issuance

Get balance for a specific account

# for all ISIN and PT
 python cli_parser.py --operation get_balance --Account <account_address>
 
 # for specific ISIN and PT
 python cli_parser.py --operation get_balance --Account <account_addess> --ISIN ABCD0002

Simulate deadline exceeded

 python cli_parser.py --operation swap  --MMNumber 0 --STAmountSwap 1 --ISIN ABCD0001 --delay True