[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

NickSneo/Bond-Issuance-dApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published