Forge Simulator

Simulator is used to generate various traffic into the chain. Thus you can use it to test the behavior of the chain. Currently these transactions are supported by simulator:

  • declare
  • transfer
  • exchange
  • create asset
  • consume asset
  • update asset
  • account migration
  • poke

When you first start simulator, it will generate 10, 000 wallets and declare those wallets into the chain. Then it will randomly send txs between registered wallets with the following configuration:

pools:
  account_migrate: 5
  create_asset: 5
  declare: 5
  exchange: 5
  transfer: 10
  update_asset: 5
  consume_asset: 5
  poke: 5
meta:
  tick: 200
simulations:
  - name: declare new account
    interval: 1
    num: 1
    type: declare

  - name: create assets
    interval: 2
    num: 2
    type: create_asset

  - name: update assets
    interval: 2
    num: 2
    type: update_asset

  - name: exchange token and assets
    interval: 2
    num: 2
    type: exchange
    settings:
      value: "1000..20000"

  - name: transfer token
    interval: 2
    num: 2
    type: transfer
    settings:
      value: "50..200"
      asset: false

  - name: transfer token and assets
    interval: 5
    num: 2
    type: transfer
    settings:
      value: "1000..5000"
      asset: true
      after: []

  - name: migrate wallets
    interval: 5
    num: 1
    type: account_migrate

  - name: create asset, consume then transfer
    interval: 5
    num: 2
    type: consume_asset

  - name: poke to get tx
    interval: 100
    num: 1
    type: poke

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Last Updated: 4/12/2019, 11:24:01 PM