Assumptions: The required contract binaries are at folders of specific names i.e. icon,stellar etc. Look at the scripts for the exact binary names.
- Deploy xcall and connection contracts in icon
sh icon.sh setupXcall
- Copy xcall address and deploy from all balanced contracts . Copy the deployment info after the deployment to a json file(deployments.json).
{ "bnusd": "cx0e58a3939bdd27073e271fbfacd613a81ae904bb", "loan": "cxf24b6c2644116fc4c4925bbbfa4fc31bccf36aa1", "router": "cxc8d20fee85e8e89791f6a2f845bdc97b04ada157", "daofund": "cxd4a9e0bc994de95b9c4a7ed122a260393c748abf", "assetManager": "cx7f3e7e3c38a80d108afca152bc68c010b0e61644", "xcallManager": "cxa27243adae50dadc497142c4908f0e7fee62f8c5", "governance": "cxc7ac214f61aa4b5fc9a408e528249facdf58a56a", "baln": "cx411d47e0ac227246133f97f07ba9214fb32a7100" }
- Deploy stellar xcall contracts
sh stellar.sh setupXcall
- Setup Balanced contracts in stellar chain
sh stellar.sh setupBaln
- Configure the stellar contracts to sync with deployment in icon
sh icon.sh postSetup
NOTE: The relayer should be up and running with proper configuration for below tests.
- Deposit and borrow in icon
sh icon.sh depositNBorrow
- Borrow BnUSD from sICX
sh icon.sh borrow
sh icon.sh transferBnUSD
sh stellar.sh xTransfer
sh stellar.sh depositBnUSD
sh icon.sh withdrawTo
sh stellar.sh invalidXTransfer
sh icon.sh transferBnUSDInvalid
sh stellar.sh depositBnUSDInvalid
sh icon.sh withdrawToInvalid