deploy_guard#

API documentation for tradeexecutor.cli.commands.deploy_guard Python module in Trading Strategy.

Module description#

deploy-guard CLI command.

See Vault deployment for the full documentation how to use this command.

Example how to manually test:

export SIMULATE=true
export OWNER_ADDRESS="0x238B0435F69355e623d99363d58F7ba49C408491"

#
# Asset configuration
#

# USDC
export DENOMINATION_ASSET="0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"
# Whitelisted tokens for Polygon: WETH, WMATIC
export WHITELISTED_ASSETS="0x7ceb23fd6bc0add59e62ac25578270cff1b9f619 0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270"

#
# Secret configuration
#

export JSON_RPC_POLYGON=
export PRIVATE_KEY=
# Is Polygonscan.com API key, passed to Forge
export ETHERSCAN_API_KEY=

Functions#

deploy_guard([log_level, json_rpc_binance, ...])

Deploy a new Guard smart contract.