lagoon_deploy_vault#

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

Module description#

lagoon-deploy-vault CLI command.

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

Example how to manually test:

export SIMULATE=true
export FUND_NAME="Up only and then more"
export FUND_SYMBOL="UP"
export VAULT_RECORD_FILE="/tmp/sample-vault-deployment.json"
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=

#
# Verifier configuration (optional)
#

# For Blockscout-based chains (e.g., Derive Chain):
# export VERIFIER=blockscout
# export VERIFIER_URL=https://explorer.derive.xyz/api

#
# Asset manager (optional, defaults to PRIVATE_KEY address)
#

# export ASSET_MANAGER=0x...

trade-executor lagoon-deploy-vault

Functions#

lagoon_deploy_vault([log_level, ...])

Deploy a Lagoon vault or modify the vault deployment.