simulate

ra-protocol simulate

Simulates by running the simulate-default.js or simulate-custom.js files depending on the selection

USAGE
  $ ra-protocol simulate -f eoa|sep|this [-d mainnet|testnet] [-c mainnet|testnet]

FLAGS
  -c, --simulate-custom=(mainnet|testnet)   **USES TENDERLY** - Flash loan simulation function with custom logic file,
                                            uses “simulate-custom.js” file in “simulations” directory
  -d, --simulate-default=(mainnet|testnet)  **USES TENDERLY** - Required on flash loan simulation functions with default
                                            simulation parameters, uses “simulate-default.js” file in “simulations”
                                            directory
  -f, --from=(eoa|sep|this)                 (required) specify where flash should be from

DESCRIPTION
  Simulates by running the simulate-default.js or simulate-custom.js files depending on the selection

EXAMPLES
  $ ra-protocol simulate default --from sep --simulate-custom testnet
  Simulation is complete

FLAG DESCRIPTIONS
  -c, --simulate-custom=(mainnet|testnet)  

    **USES TENDERLY** - Flash loan simulation function with custom logic file, uses “simulate-custom.js” file in
    “simulations” directory

  -d, --simulate-default=(mainnet|testnet)  

    **USES TENDERLY** - Required on flash loan simulation functions with default simulation parameters, uses
    “simulate-default.js” file in “simulations” directory

  -f, --from=(eoa|sep|this)

        eao: From your EOA
        sep: From a separate contract
        this: From the same contract

CONFIG USAGE
  This command behavior affected by following config variables: protocol-aave, protocol-uni, privacy, tenderly-key, tenderly-user, tenderly-project

  For details run
  $ ra-protocol config set --help

See code: dist/commands/simulate/index.ts

Last updated