github.com/iotexproject/iotex-core@v1.14.1-rc1/tools/bot/README.md (about)

     1  # iotex-bot
     2  
     3  Bot is a server for testing with IoTeX blockchain.
     4  we could set execute intervals and timeout.In every execute interval,three steps will be execute and check timeout sequentially.
     5  
     6  There's three steps to execute in every interval:
     7  1. Make a token transfer,from signer to signer,but this will consume a little gas,about 0.01 IOTX.
     8  2. Make a xrc20 token transfer,from signer to signer,this will consume a little gas,about 0.03 IOTX.
     9  3. Make a multisend execution,from signer to any address that you seted,if we send 300 addresses,gas consumes about 4.74 IOTX.
    10  
    11  Please make sure there's enough balances for the signer.
    12  
    13  We will check if results returned right,if it's not right we will exit.
    14  
    15  # Build
    16  make build
    17  
    18  After this command, target bin files will be placed in this folder.
    19  
    20  # Usage
    21     bot -config-path=[string]
    22       -config-path string
    23         	Config path (default "config.yaml")
    24  
    25  # pre run
    26  First we need to deploy two contracts,one for xrc20,one for multisend,those two contracts is in server/bot/contract folder.
    27  
    28  # modify config.yaml
    29  We need to add two contracts's address and a signer with enough balances to config.yaml.
    30  
    31  # run
    32  bot -config-path=/etc/iotex/config.yaml
    33  
    34  # docker build
    35  docker build -t iotex-bot:latest .
    36  
    37  put config.yaml and keystore in /etc/iotex folder(default path),set the right path to config.yaml.
    38  
    39  # docker run
    40  docker run -d -P --name bot -v /etc/iotex:/etc/iotex iotex-bot bot -config-path=/etc/iotex/config.yaml
    41  
    42  ## License
    43  This project is licensed under the [Apache License 2.0](LICENSE).