ICX Maker Bot with Deno (Automatic Testing) #994
izzycsy
announced in
Experimental
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For users who would like to test ICX (InterChain Exchange) maker bot independently on their local repository, here’s a guide. For the purpose of this test exercise, Taker (the user), will be interacting with Maker (bot) to perform the transaction.
Before starting the test, ensure that you have:
spv=1
in defi.conf fileAfter testing, if you’re using dBTC maker bot, you should receive BTC token for dBTC. Whereas if you’re using BTC maker bot, you should receive dBTC for BTC token. Essentially, dBTC maker is selling dBTC, and BTC maker; vice versa.
User role: Taker
1. Install Deno
https://deno.land/
2. Clone icx-makerbot repository into your local repository
https://github.com/DeFiCh/icx-makerbot
Prerequisite Parameters
Tips:
' '
or" "
, not“ ”
Open
defi.conf
in a Code Editor and retrieve the following parameters:Mac — Go to Folder:
/Users/<username>/.defi/defi.conf
Windows:
C:\Users\<username>\.defi\defi.conf
Check in
defi.conf
that spv is enabled:spv=1
From your DeFi Wallet, retrieve the following parameters:
spv_getnewaddress
in DeFi CLIspv_getaddresspubkey <space> spvAddress
in DeFi CLI4. Run DeFi Wallet in the background
5. Prepare the script
Script example(s):
dBTC Taker
Example output:
BTC Taker
Using retrieved parameters it should look something like this:
6. To run dBTC maker bot using Deno
Run your Terminal, change directory to icx-makerbot (step 2) and run deno (step 5)
Example output:
You may check your transaction on DeFiChain Testnet Explorer: https://testnet.defichain.io/#/DFI/testnet/home
6. To run BTC maker bot using Deno
Example output:
You may check your transaction on Bitcoin Testnet Explorer: https://www.blockchain.com/explorer?view=btc-testnet
Footnote
In Terminal, change directory to your local icx-makerbot repository and
git pull
Beta Was this translation helpful? Give feedback.
All reactions