Deployment#
API documentation for tradeexecutor.state.sync.Deployment Python class in Trading Strategy framework.
- class Deployment[source]#
- Bases: - object- Information for the strategy deployment. - Capture information about the vault deployment in the strategy’s persistent state 
- This information can be later used to look up information (e.g deposit transactions) 
- This information can be later used to look up verify data 
 - __init__(chain_id=None, address=None, block_number=None, tx_hash=None, block_mined_at=None, vault_token_name=None, vault_token_symbol=None, initialised_at=None)#
 - Methods - __init__([chain_id, address, block_number, ...])- from_dict(kvs, *[, infer_missing])- from_json(s, *[, parse_float, parse_int, ...])- schema(*[, infer_missing, only, exclude, ...])- to_dict([encode_json])- to_json(*[, skipkeys, ensure_ascii, ...])- Attributes - Vault smart contract address - UTC block timestamp of the vault deployment tx - When the vault was deployed - Which chain we are deployed - When the initialisation was complete - When the vault was deployed - Vault name - Vault token symbol - address: Optional[str] = None#
- Vault smart contract address - For hot wallet execution, the address of the hot wallet 
 - block_number: Optional[int] = None#
- When the vault was deployed - Not available for hot wallet based strategies 
 - tx_hash: Optional[str] = None#
- When the vault was deployed - Not available for hot wallet based strategies 
 - block_mined_at: Optional[datetime] = None#
- UTC block timestamp of the vault deployment tx - Not available for hot wallet based strategies 
 - vault_token_symbol: Optional[str] = None#
- Vault token symbol - Enzyme vault name - same as vault toke name 
 - __init__(chain_id=None, address=None, block_number=None, tx_hash=None, block_mined_at=None, vault_token_name=None, vault_token_symbol=None, initialised_at=None)#