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)#
Parameters:
Return type:

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

address

Vault smart contract address

block_mined_at

UTC block timestamp of the vault deployment tx

block_number

When the vault was deployed

chain_id

Which chain we are deployed

initialised_at

When the initialisation was complete

tx_hash

When the vault was deployed

vault_token_name

Vault name

vault_token_symbol

Vault token symbol

chain_id: Optional[ChainId] = None#

Which chain we are deployed

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_name: Optional[str] = None#

Vault name

Enzyme vault name - same as vault toke name

vault_token_symbol: Optional[str] = None#

Vault token symbol

Enzyme vault name - same as vault toke name

initialised_at: Optional[datetime] = None#

When the initialisation was complete

__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)#
Parameters:
Return type:

None