BlockchainTransactionType#

tradeexecutor.state.blockhain_transaction.BlockchainTransactionType Python class in Trading Strategy framework.

class BlockchainTransactionType[source]#

Bases: Enum

What kind of transactions we generate.

__init__()#

Attributes

hot_wallet

Direct trade from a hot wallet

enzyme_vault

A trade tx through Enzyme's vault

simulated

Simulated transaction

hot_wallet = 'hot_wallet'#

Direct trade from a hot wallet

enzyme_vault = 'enzyme_vault'#

A trade tx through Enzyme’s vault

  • Target address is the comptroller contract of the vault

  • The function is ComptrollerLib.callOnExtension()

  • The payload is integration manager call for generic adapter

  • The actual trade payload can be read from BlockchainTransaction.details field

simulated = 'simulated'#

Simulated transaction

This transaction does not take place on EVM (real blockchain, unit test chain, etc). and any field like addresses or transaction hashes may not be real.