strategy.strategies.tutorial_uniswap_swap.models
Enum
List
Tuple
UUID
validator
Chain
Network
Protocol
InternalFlowStatus
PersistentStateBase
StrategyConfigBase
Web3
State Objects
class State(Enum)
Enum representing the state of the strategy.
INITIALIZATION
SWAP
COMPLETED
A "Cycle" is completed in between Checks for Rebalance
TEARDOWN
TERMINATED
The Strategy is terminated
SubState Objects
class SubState(Enum)
Enum representing the substates of some of the strategy states. A state machine within a state machine.
NO_SUBSTATE
PersistentState Objects
class PersistentState(PersistentStateBase)
current_state
current_substate
current_flowstatus
current_actions
sadflow_counter
sadflow_actions
not_included_counter
last_swap_amounts
model_dump
def model_dump(**kwargs)
StrategyConfig Objects
class StrategyConfig(StrategyConfigBase)
id
network
chain
protocol
initiate_teardown
pause_strategy
wallet_address
pool_address
token_in_address
token_in_amount
slippage_swap
validate_ethereum_address
@validator(
"wallet_address",
"pool_address",
check_fields=False,
)
def validate_ethereum_address(cls, value)
model_dump
def model_dump(*args, **kwargs)